css :mark標籤使用執行個體

來源:互聯網
上載者:User
mark標籤:

mark元素表示頁面中需要突出或高亮顯示的內容,在搜尋結果中也常常出現,比如檢索結果中的關鍵詞高亮顯示。

案例:

<!DOCTYPE HTML>    <html>    <head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>HTML5每日一練之mark標籤的應用</title>    </head>    <body>    <p>HTML5|CSS3|論壇 | <mark>前端開發!</mark></p>    <p>HTML5論壇,CSS3論壇,CSS論壇,WEB前端開發論壇,教程資源完全免費的網頁教學網</p>    </body>    </html>

文法:

marks : none | crop || cross

參數:

none :  無頁標記出現
crop :  在頁面將會被裁切處指定切割標記
cross :  指定交叉線標記用來供頁面對齊

說明:

印刷業的印刷文檔通常在頁面內容地區外帶有一些標記,用來校正和調整所有的頁面。此屬性用來設定或檢索什麼樣的標誌是應該在頁容器外邊被給予。
目前IE5.5尚不支援此屬性。
對應的指令碼特性為marks。請參閱我編寫的其他書目。

樣本:

body { marks: crop cross }
相關文章

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.