div+css
*{margin:0;padding:0;}通常这条语法在代码的开头都设计为0;
设置边逛的长度,及其边框的高度:{height:px;width: px;}
浮动定位{float:值 }(right left none)
清除浮动{clear:(left right center)}
绝对定位:{positive:absolute;top bottom left tight 值}
相对定位:{positive:relative;top bottom left tight 值}
代码例;<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
*{margin: 0;padding: 0;font-size: 10px;}
div.fa{width: 300px;height: 300px;border: 3px solid #05DAFA;margin: 100px;padding: 10px;}
div.b{width:120px;height:120px;background-color: #190D0D;position:relative;top: 80px;left: 80px;}
</style>
</head>
<body>
<div class="fa">
<div class="b">
我是李什么凡烦
</div>
</div>
</body>
</html>