
form#staff_info fieldset {
background: rgba(255,255,255,.3);
border-color: rgba(255,255,255,.6);
border-style: solid;
border-width: 2px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
line-height: 30px;
list-style: none;
padding: 5px 10px;
margin-bottom: 2px;
}
form#staff_info fieldset legend {
color:#302A2A;
font: bold 16px/2 Verdana, Geneva, sans-serif;
font-weight: bold;
text-align: left;
text-shadow: 2px 2px 2px rgb(88, 126, 156);
}
<fieldset style="border-width: 1px; border-color: #008000; width:95%; height:220"> <legend>系统使用说明</legend> </fieldset>
其中border-width: 1px;是边的粗细,border-color: #008000;为边色,最好给他一个border-width: 1px;这个值不然会显不出来想要的粗细的.
样式标签为:border-bottom-color,是设置底部边框颜色的,其它三个边框则把中间的bottom分别改为Top(上部)、Left(左部)、Right(右部)即可。
