標籤:option 萬用字元 put 注意 常用 app bsp htm sel
blue:藍色 red:紅色 yellow:黃色 green:綠色 white:白色 gray:灰色
/*去掉底線*/
text-decoration: none;
/*添加底線*/
text-decoration: underline;
/*字斜體*/
font-style:italic;
/*字的大小*/
font-size: 40px;
/*背景顏色*/
/*邊境為10px的立體為綠色*/
border: 10px solid green
/*萬用字元 調整浮動的*/
*{
margin: 0;
padding: 0;
}
/*去掉字前面的點*/ (注意要寫到li裡面)
list-style: none;
/*字傾斜*/
font-style: oblique;
/*置中*/
margin: 0 auto;
/*是“內邊距”的意思*/
Padding
/*清除浮動*/
clear:both(表示當前自己內部的元素不受其他盒子的影響)
overflow:hidden(超出範圍內就隱藏)
/*首行空二個漢字的格*/
text-indent:2em;
/**/
font-size(尺寸) 、 line-height(行高)、 font-family(字型)
/*使用者滑鼠移至上方的時候連結的樣式。 是英語“懸停”的意思。*/
:hover
/*表示的是誰壓著誰,數值大的壓著數值的小*/
z-index
/*加外框*/
border: solid;
/*資訊列表*/
<select>
<option>江西省</option>
<option>河北省</option>
</select>
/*圓圈點*/
<ul type="circle">
/*正方形點*/
<ul type="square">
/*行高*/
line-height
//複選框
checkbox<input type=“checkbox”>
HTML常用屬性