亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場 | 考試論壇  
        當(dāng)前位置:設(shè)計(jì)制作 > CSS/HTML > 文章內(nèi)容
        

      HTML和CSS教材:CSS

       [ 2016年10月3日 ] 【

      CSS

      1.       外部樣式表

      <head>

      <link rel=”stylesheet” type=”text/css” href=””>   <!--link元素只能出現(xiàn)在head標(biāo)簽內(nèi)-->

      </head>

       

      或者

      <style type=”text/css”>

      @import url()

      </style>

       

      2.       提高優(yōu)先級

      加!important屬性。如: h1{ color : black !important;}

      3.       選擇器

      關(guān)聯(lián)選擇器   #nav li a,  #nav li a:link,  li emu l, ……

      類選擇器     .wide{ },  p.wide{}, ……

      Id屬性選擇器 #name

      錨偽類       a:link,  a:visited,  a:active,  a:hover, 或者直接 :link ……

      印刷為元素   <P>

      P:first-line{  font, color, background, word-spacing, letter-spacing, text-decoration, vertical-align, text-transform, line-height, clear}

      P:first-letter{  font, color, background, letter-spacing,  vertical-align, text-transform, line-height}

      選擇器中的為元素 body p:first-letter{ }, p.id:first-letter{}, ……

      4.       框架屬性與內(nèi)容

      border, border-bottom, border-top, border-left, border-right

      border-bottom-color, border-bottom-style, border-bottom-width

      border-width, border-color, border-style

      clear, float

      margin, margin-top, margin-bottom, margin-left, margin-right

      padding, padding-top, padding-bottom, padding-left, padding-right

      5.       顏色與背景屬性

      background, background-attchment, background-color, background-image, background-position, background-repeat, color

      6.       分級屬性

      display, list-style-type, list-style-image, list-style-position, list-style, white-space

      ul {  list-style-image:url("/i/arrow.gif");  list-style-type:square;  }

      7.       字體屬性

      font, font-family, font-size, font-style, font-variant, font-weight

      8.       文字屬性

      Letter-spacing, line-break, line-height, vertical-align,

      text-align, text-decoration, text-indent, text-justify, text-transform

      9.       盒子模型

      10.  定位元素

      position(僅div可用):absolute(相對父元素), width, height, z-index, static, relative(相對頁面)

      left, top(坐標(biāo)):元素與父元素左方和上方邊緣的空間大小,可用于padding,border,margin

      width, height絕對或相對的寬度與高度?捎糜诙x元素實(shí)際占用空間,以內(nèi)容長度為準(zhǔn),不包括padding、border與margin

      visibility: visible(可見), hidden(隱藏), inherit(繼承父元素屬性)

      11.  度量單位

      px 像素, in 英寸, cm 厘米, mm 毫米, pt=1/72in,  pc=12pt

      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請鏈接 | 意見留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved