a标签下划线
頁(yè)面中有一處box中的a標(biāo)簽都被加上了下劃線,查找元素卻沒(méi)有找到css中的underline。
原因是 <a>標(biāo)簽?zāi)J(rèn)是有下劃線的,而一般看到的<a>標(biāo)簽鏈接中的下劃線都被覆蓋掉了,所以誤以為<a>標(biāo)簽的默認(rèn)狀態(tài)是沒(méi)有下劃線的,出現(xiàn)下劃線是有css另外渲染的。
其實(shí)下劃線才是<a>標(biāo)簽的默認(rèn)狀態(tài)
在head中加上下面一段覆蓋掉<a>標(biāo)簽的下劃線
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
轉(zhuǎn)載于:https://www.cnblogs.com/huim/p/9810399.html
總結(jié)
- 上一篇: sql格式化工具-SQL Pretty
- 下一篇: 安卓接口和type-c接口有什么区别