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

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

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)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容