【发布时间】:2011-03-09 23:44:16
【问题描述】:
问题
我有一个 CSS 按钮,只能在测试区域上单击。
我无法单击按钮的非文本区域。
这是我网站上“编辑”按钮的 HTML 代码。
<div class="stndrd_btn">
<p><?php echo $html->link('Edit','... destination....'); ?></p>
</div>
下面是按钮的 CSS 代码。
.stndrd_btn {
width:140px;
height:30px;
background:url(img/stndrd_btn.png);
color:#FFF;
cursor: pointer;
}
.stndrd_btn p {
color:#FFF;
margin:0 auto;
text-align:center;
vertical-align: middle;
padding-top:6px;
font-size:14px;
font-weight: bold;
width: 100%;
height: 100%;
display: block;
cursor:pointer;
}
请让我知道如何在整个按钮上进行点击。谢谢!!
【问题讨论】:
-
在 Chrome 上运行良好。您在哪个浏览器上遇到问题?