list-style-type、完全導(dǎo)航樣式、text-transform、text-decoration、完全樣式的橫向?qū)Ш綑?/h1>

list-style-type
可以清除列表最前面的無序/有序標(biāo)識(shí);

ul{
list-style-type:none;
margin:0;
padding:0;
}


完全導(dǎo)航樣式

ul
{
list-style-type:none;
margin:0;
padding:0;
}
a:link,a:visited
{
display:block;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
width:120px;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#7A991A;
}


text-transform:uppercase;


去掉字段修飾的樣式,如鏈接的下劃線等;

text-decoration:none;


完全樣式的橫向?qū)Ш綑?/strong>

li{
/text-align: center;/
/display: block;/
/width: 120px;/
float: left;
padding: 0px;
margin: 0px;
text-align: center;
}

a{
display: block;
width: 120px;
background-color: orange;
text-decoration: none;
}

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容