首页 > 其他 > 详细

11.8

时间:2016-11-09 13:28:35      阅读:250      评论:0      收藏:0      [点我收藏+]

<<!DOCTYPE html>

<html>

<head>

<meta charset="utf8">

<title></title>

<style >


#e{width: 200px;height: 200px;margin: 0 auto;margin-top:300px;

    margin:100px;padding:30px}

.i{width:100px;height: 100px;}

#a{background-color: #400000;float:left;border-radius: 100px}

#b{background-color: #546456;float:left;border-radius: 100px}

#c{background-color: #123123;float:left;border-radius: 100px}

#d{background-color: #234324;float:left;border-radius: 100px}

h1{color: #456546;width: 50px;margin: 0 auto;

  margin-top: 300px;}

</style>

</head>

<body>

<div id="e">

<div class="i" id="a"></div>

<div class="i" id="b"></div>

<div class="i" id="c"></div>

<div class="i" id="d"></div>

<h1>脱发代码</h1>



</div>

</body>

</html>


marigin-top:300px调整上面距离。

marigin-right 右,left 左,bottom下

margin外边距,        padding内边距,

<meta charset="utf8">清除乱码

marigin: 0 auto; 使方格居中

border-redius: 100px 使方框变圆

<h1></h1> h1是字体。


11.8

原文:http://12254253.blog.51cto.com/12244253/1870797

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!