目前在作某一個頁面的時候
因為設定頁面屬性裡面的文字增加連結顏色都會被統一
可是網頁區塊有的有深色有的有淺色
所以如果把連結文字顏色統一
就會出現某些地方的連結顏色跟背景整個融入
請問一下有辦法個別設定單一部分的文字連結顏色嗎?
我在CSS樣式表中找不到定義連結顏色的選項

如果硬是去編輯程式碼
加上
a:link {color: #003366;}
a:visited {color: #003366;}
a:hover { color: #003366;}
a:active { color: #003366;}
它變成整個頁面一起變動@@
比方說我有一個圖層layer1
然後CSS是這樣
html, body {
margin: 0;
text-align: center;
}
a:link {
color: #003366;
}
a:visited {
color: #003366;
}
a:hover {
color: #003366;
}
a:active {
color: #003366;
}
a:active {
text-decoration: none;
}
#Layer1 {
position:absolute;
margin: 0 auto;
width:960px;
height:220px;
z-index:1;
font-family: Verdana, Arial, Helvetica, sans-serif;
overflow: auto;
font-size: 12px;
font-weight: bold;
color: #003366;
left: 0;
top: 0;
text-align: left;
line-height: normal;
vertical-align: middle;
}
他會連layer2的連結顏色也跟著變
是不是有哪裏寫錯了@@?
新手上路請多包含

內文搜尋
X



























































































