HTML常用屬性

來源:互聯網
上載者:User

標籤: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常用屬性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.