css基礎-font&link&list屬性

來源:互聯網
上載者:User

標籤:style   blog   io   color   os   ar   sp   div   on   

 1 /*字型 2 字型系列:font-family 3 字型樣式:font-style:normal(預設)Italic(斜體)oblique(傾斜的字型) 4 字型大小:font-size 5 字型的粗細 font-weight:normal(預設)bold 定義大小數字 6  7  8 用em來設定字型大小,em的尺寸單位由W3C建議 9 1em和當前字型大小相等。在瀏覽器中預設的文字大小是16px。10 11 */12 p{13     font-family:"Times New Roman", Times, serif;14     font-style: inherit;15     font-size:14px;16     font-weight: bold;17 }18 /*串連19     a:link - 正常,未訪問過的連結20     a:visited - 使用者已訪問過的連結21     a:hover - 當使用者滑鼠放在連結上時22     a:active - 連結被點擊的那一刻23 */24 a:link{25     color: red;26     27 }28 a:visited{29     color:blue;30     text-decoration: underline;31 }32 a:hover{33     color:green;34 }35 a:active{36     color:orange;37 }38 /*Note:當設定為若干鏈路狀態的樣式,也有一些順序規則:39 40     a:hover 必須跟在 a:link 和 a:visited後面41     a:active 必須跟在 a:hover後面42 */43 44 45 /*列表46 list-style     簡寫屬性。用於把所有用於列表的屬性設定於一個聲明中47 list-style-image     將圖象設定為清單項目標誌。48     49 50 list-style-position     設定列表中清單項目標誌的位置。51     inside         清單項目標記放置在文本以內,且環繞文本根據標記對齊。52     outside     預設值。保持標記位於文本的左側。清單項目標記放置在文本以外,且環繞文本不根據標記對齊。53 54 list-style-type     設定清單項目標誌的類型。55 */56 57 ul{58     list-style-type:none;59     list-style-position: inside;60     padding:0px;61     margin:0px;62 63 }64 ul li{65     background-image:url(sqpurple.gif);66     background-repeat:no-repeat;67     background-position:0px 5px; 68     padding-left:14px;69 }

 

css基礎-font&link&list屬性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.