【道勤網(wǎng)】- bmrsportswear.com 軟件視頻自學(xué)教程|免費(fèi)教程|自學(xué)電腦|3D教程|平面教程|影視動(dòng)畫教程|辦公教程|機(jī)械設(shè)計(jì)教程|網(wǎng)站設(shè)計(jì)教程!【道勤網(wǎng)】
標(biāo)題:
簡(jiǎn)單CSS樣式表的寫法
[打印本頁]
作者:
大師兄
時(shí)間:
2017-11-21 09:50
標(biāo)題:
簡(jiǎn)單CSS樣式表的寫法
<html>
<head>
<style type="text/css">
a.top:link {font-family: 宋體} /*鏈接字體*/
a.top:link {font-weight: normal;} /*設(shè)置鏈接文字中的字符粗細(xì)*/
a.top:link {font-size: 12} /*設(shè)置鏈接文字的大小*/
a.top:link {text-decoration: none;} /*設(shè)置鏈接文字沒有下劃線*/
a.top:hover {text-decoration: underline;} /*鼠標(biāo)放在鏈接上時(shí)有下劃線*/
a.top:link {color: #000000} /*設(shè)置鏈接文字的顏色*/
a.top:visited {color: #000000} /*訪問過的鏈接*/
a.top:hover {color: #B50000} /*鼠標(biāo)放在鏈接上字體的顏色*/
a.tj:link {font-family: 宋體}
a.tj:link {font-weight: normal;}
a.tj:link {font-size: 12}
a.tj:link {text-decoration: none;}
a.tj:hover {text-decoration: none;}
a.tj:link {color: #000000}
a.tj:visited {color: #0000ff}
a.tj:hover {background: #FFFFCC}
h1 {font-size:12px}
h1 {font-family: "宋體"}
h1 {font-weight: normal;}
h1 {color: #000000}
h2 {font-size:14px}
h2 {font-family: "宋體"}
h2 {font-weight: normal;}
h2 {color: #000000}
h3 {font-size:24px}
h3 {font-weight: 1;}
h3 {color: #000000}
body {
margin-top: 1px; /*上邊距*/
margin-bottom: 1px; /*下邊距*/
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<p>Mouse over the links to see them change layout.</p>
<p><b><a href="default.asp" target="_blank" class="top">電腦對(duì)懷孕其實(shí)沒啥影響</a></b></p>
<p><b><a href="default.asp" target="_blank" class="tj">電腦對(duì)懷孕其實(shí)沒啥影響</a></b></p>
<h1>電腦對(duì)懷孕其實(shí)沒啥影響</h1>
<h2>電腦對(duì)懷孕其實(shí)沒啥影響</h2>
<h3>電腦對(duì)懷孕其實(shí)沒啥影響</h3>
</body>
</html>
復(fù)制代碼
歡迎光臨 【道勤網(wǎng)】- bmrsportswear.com 軟件視頻自學(xué)教程|免費(fèi)教程|自學(xué)電腦|3D教程|平面教程|影視動(dòng)畫教程|辦公教程|機(jī)械設(shè)計(jì)教程|網(wǎng)站設(shè)計(jì)教程!【道勤網(wǎng)】 (http://bmrsportswear.com/)
Powered by Discuz! X3.4