不工作我想我的按钮,专区内删除的文字下划线,但不能得到任何工作,请指教我怎样才能摆脱它。文字修饰:根本就没有
任何帮助非常感谢。
代码:
html,
body {
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
#topbar {
display: block;
width: 100%;
height: 6%;
background-color: #cc0000;
margin: 0;
padding: 0;
position: relative;
box-shadow: 1px 1px 5px 1px #888888;
}
#leftpane {
float: left;
width: 10%;
height: 94%;
background-color: #8b9dc3;
margin: 0;
padding: 0px;
box-shadow: 1px 1px 5px 1px #888888;
text-decoration: none;
}
.btn {
border-radius: 0px;
font-family: Arial;
color: #ffffff;
font-size: 13px;
padding: 2px 0px 2px 5px;
margin: 0px 0px 0px 0px;
text-decoration: none;
text-align: left;
font-weight: bold;
text-decoration: none;
}
.btn p {
text-decoration: none;
}
<div id="leftpane">
<a href="url/post.php">
<div class="btn">
<p>Post a Bulletin</p>
</div>
</a>
</div>
我曾尝试推行text-decoration: none
的各种方式,但没有工作过,这就是为什么它现在是在几个地方。
欢迎牛逼o StackOverflow!请为您的代码添加一些解释:为什么它有效?它应该做什么? –
提问者应该使用HTML的格式在这种情况下#leftpane应该继承锚的一个标签类 –