<div style="
width:60%;
height:30px;
padding:9px 10px 0px 10px;
border-right:1px #C2CFF1 solid;
border-top:1px #C2CFF1 solid;
border-bottom:1px #C2CFF1 solid;
border-left:1px #C2CFF1 solid;">论坛板块</div>
z-index:1;---------指重块的层叠次序
width:60%;---------指整个块的宽度
border-right:1px #DDDDDD solid;-----边框
要让边框属性生效,首先要定义一个border-style:solid属性,这是声明边框样式的,然后才可以添加边框属性。
<div style="width:150px;color:#ff0000;overflow:hidden;">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
控制列宽,多余的字会自动换行