欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

<html>
<head>
<style type="text/css">
div
{
float:right;
width:120px;
margin:0 0 15px 20px;
padding:15px;
border:1px solid black;
text-align:center;
}
</style>
</head>

<body>
<div>
<img src="/i/eg_cute.gif" /><br />
CSS is fun!
</div>
<p>
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>

<p>
在下面的段落中,div 元素的宽度是 120 像素,它此中包孕图象。div 元素浮动到左边。咱们向 div 元素增进了外边距,何等便能够把 div 推离文本。同时,我们还向 div 增多了边框和内边距。
</p>
</body>

</html>

如需转载,请注明文章出处和来源网址:http://www.xuroms.com.cn/shili/s53331.shtml

欢乐二人雀神游戏