將下列代碼存為1.css,然後在dw中引用外部css
.button1{
font-size:9pt;color:#ff0000;
height:24px;
background-color:#f5f5f5;
border-left:1px solid #000000;
border-right:1px solid #000000;
border-top:1px solid #000000;
border-top:1px solid #000000;
}
然後
<input type=button class="button1" value="Button">
或者:
点击"窗口-->CSS样式",打开CSS样式单,新建一个CSS样式,在这个样式中定义你想要的效果,然后选中你要运用CSS样式的按钮,在CSS样式单中,单击应用CSS样式即可.
留言区(共0条)