- 去掉连接下划线
a:link { text-decoration: none;}
javascript访问 obj.style.textDecoration = "none";
- 图片与文字对齐
<img style="vertical-align:text-bottom"/>
- 画边框,边框显示标题
样式表
<style type="text/css">
* {
font-size:12px;
margin:0;
padding:0;
}
fieldset {
padding:10px;
margin:10px;
width:200px;
color:#333;
border:#06c dashed 1px;
}
legend {
color:#06c;
font-weight:800;
background:#fff;
}
ul {
list-style-type: none;
margin:8px 0 4px 0;
}
li {
margin-top:2px;
}
</style>
应用
<fieldset>
<legend>Your Title</legend>
your content
</fieldset>