css

1--圖片固定:background-attachment:fixed;

2--表格的標題:caption-side:bottom;

3--border-style:solid;

??? border-width:medium;

注意:"border-width" 屬性 如果單獨使用則不起作用。要先使用 "border-style" 屬性來設置邊框。

4--邊框輪廓:outline:green dotted thick;

5--最大'高度'? /? 最小'高度':? max-height:?px;? ? ? /???? min-width:?px;

6--隱藏元素:visibility:hidden;

注意: 實例中的隱藏標題仍然占用空間.

7--不顯示一個元素:display:none;

8--隱藏一行或一列表格:visibility: collapse;

9--重疊樣式:z-index:-1;

? ? ? 鏈接:http://www.runoob.com/try/try.php?filename=trycss_zindex

10--設置元素的形狀:clip:rect(0px,60px,200px,0px);

????????????????????? 它的意思是:剪裁 :矩形 (0px,? 60px?? ,200px???? ,0px)

11--顯示滾動條:overflow:scroll;

12--鼠標指針發(fā)生變化(更改光標):cursor:auto;

? ? ? ? 鏈接:http://www.runoob.com/try/try.php?filename=trycss_cursor

13--清除浮動:clear:both;

14--有趣的border屬性,建議看看

? ? ? ? ? ? ? 鏈接:http://www.runoob.com/try/try.php?filename=trycss_float5



15--代碼:???????????????? h1:before

????????????????????????? ? ? ? ?? {

???????????????????????????????????? counter-increment:section;

????????????????????????????????????? content:"Section " counter(section) ". ";

?????????? }

??????????????????????????????????????? h2:before

????????????????????????????????????? {

?????????????????????????????????????????????? counter-increment:subsection;

?????????????????????????????????????????????? content:counter(section) "." counter(subsection) " ";

??????????? }

效果:Section1.HTML tutorials

?? ? ? 1.1 ???? HTML Tutorial

??? ?? 1.2 ???? XHTML Tutorial

??? ?? 1.3 ???? CSS Tutorial



16--焦點:input:focus{

} ??

(文本框點擊后的樣式)?? ? ? ??

17--使用 "first-letter / line" 偽元素向文本的? 首字母 / 首行? 設置特殊樣式;

18--文本轉換:text-transform:uppercase; ?(轉換成大寫);

19--? 設置不透明度:filter:alpha(opacity=60) ;

? ?? ? ?? 它的意思是{過濾器:阿爾法(透明度=60);} ?

20--(2017/04/20)五大內核:

21--


?

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • 各種純css圖標 CSS3可以實現(xiàn)很多漂亮的圖形,我收集了32種圖形,在下面列出。直接用CSS3畫出這些圖形,要比...
    劍殘閱讀 9,688評論 0 8
  • 1、垂直對齊 如果你用CSS,則你會有困惑:我該怎么垂直對齊容器中的元素?現(xiàn)在,利用CSS3的Transform,...
    kiddings閱讀 3,200評論 0 11
  • 問答題47 /72 常見瀏覽器兼容性問題與解決方案? 參考答案 (1)瀏覽器兼容問題一:不同瀏覽器的標簽默認的外補...
    _Yfling閱讀 13,805評論 1 92
  • 1.長方形 #Rectangle{ width: 200px; height: 50px; background-...
    一直以來都很好閱讀 518評論 0 0
  • 5.橢圓 #ellipse{ width: 200px; height: 100px; background-co...
    小茶葉葉閱讀 2,123評論 0 1