3 回答

TA貢獻1828條經(jīng)驗 獲得超6個贊
在一個id為bt1的按鈕上設置樣式,如下:
#bt1{
1 | font-family:微軟雅黑 ; <!-- 字體 --> |
1 2 3 4 5 6 7 8 9 10 11 | width: 60px ; <!-- 寬度 --> height:30px ; <!-- 高度 --> font-size:14px; <!-- 字體大小--> color:gray; <!--字體顏色 --> border: 1px solid red; <!-- 邊框;邊框?qū)挾?、單線、邊框顏色 --> margin-left: 10px; <!-- 左邊距,相應的還有右邊距margin-right, 上margin-top,下 margin-buttom --> background-color:#F1F1F1; <!--背景色;十六位顏色表示時前加#符號 transparent是透明--> box-shadow:10px 10px 10px gray; <!-- 陰影;x軸偏移(右偏為正),y軸偏移(向下 為正),模糊度,模糊顏色 --> border-radius:10px 10px 10px 10px;<!-- 圓角;左上,右上,右下,左下--> cursor:pointer; <!-- 鼠標經(jīng)過時鼠標變成小手 --> |
}

TA貢獻1834條經(jīng)驗 獲得超8個贊
button{
border-style:solid;
border-width:1px;
border-color:#388BFF;
/*border:1px;*//*不要設置border*/
}
- 3 回答
- 0 關注
- 3268 瀏覽
添加回答
舉報