div+css+html學習筆記(2)

來源:互聯網
上載者:User

1. 字型間距與行距:letter-spacing: 5px; (間距)line-height: 30px; (行距)

2.三原色 定義color:rgb(0,0,255);

3. 設定透明度 filter: alpha(opacity=0); opacity: 0; -moz-opacity:0;

4. 運算式寫法,input類型為text、radio的border:1px; 其他0px;

input {  border: expression(this.type == "text" || this.type =="radio"? "1px" : "0px");}

5. 簡寫樣式 margin: 1px 2px 3px 4px;(上右下左)

  font:font-style  font-variant  font-weight  font-size/line-height  font-family (後面兩個必須定義)

  border: border-width  border-style  border-color  (可以唯寫一個)

  background:background-color  background-image  background-repeat  background-attachment  background-position (可以唯寫一個)

  參考檔案:http://www.w3school.com.cn/css/css_reference.asp

相關文章

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.