css基本定義 link 元素屬性 套用樣式


支援CSS1 以上

用法::link
說明:尚未訪問 套用樣式

css定義:
    a tag  尚未訪問 套用樣式
a:link {
font-size: 30px; 字型30像素
color: blue;  字顏色blue
}
尚未訪問 是為 未按過此a tag

程式:
<!DOCTYPE html>
<html>
<head>
<title>css基本定義 link 元素屬性 套用樣式</title>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<style type="text/css">
a:link {
font-size: 30px;
color: blue;
}
</style>
</head>
<body>
<a href="#1">這是a tag</a>
<div>
<a href="#2">這是a tag</a>
</div>
</body>
</html>

尚未訪問
圖1:


已訪問後
圖2:



測試結束~
如果還不了解可參考:w3schools CSS Selector Reference


感謝~







 






 















其它文章

arrow
arrow

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()