怎样用css模式进行我网页排版?

html-css010

怎样用css模式进行我网页排版?,第1张

这个首先你要会CSS语法

可以在页面中添加link标签引用外部css样式表<link rel="stylesheet" type="text/css" href="***.css" />

然后再***.css样式表中定义css语法

<style>

*{padding:10pxfloat:lefttext-align:center}

.x{width:200pxborder:1px solid #f60}

.a{border-right:0}

.b{}

.c{border-left:0}

</style>

<div class="a x">12321</div>

<div class="b x">12312</div>

<div class="c x">123</div>