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

应用 float 属性来进行左和右对齐

对齐元素的另外一种办法是运用 float 属性:

实例

 

.right
{
float:right;
width:300px;
background-color:#b0e0e6;
}

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css-tool/t52913.shtml