CSS定位

一. 绝对定位

<style type="text/css">
  #top_Div{
 position:absolute;
 left:20px;
 top:10px; 
  }
  #bottom_Div{
 position:absolute;
 left:530px;
 top:10px 
  }
</style>

二. 图文混排

  应用CSS的float属性可以完成图文混排,该属性包含四个可选值:left、right、none和inherit。

.picture{

          float:left;                              /*在文本的左边*/

          border:1px solid #000000;    /*图片边框的宽度、类型和颜色*/

          margin-top:10px;                 /顶部、底部、左边和右边与其它元素保持10px*/

          margin-bottom:10px;

          margin-left:10px;

          margin-right:10px

}

posted @ 2013-12-24 14:27  featherfly  阅读(116)  评论(0)    收藏  举报