【发布时间】:2012-03-18 17:52:48
【问题描述】:
CSS 边框半径确实会影响按钮呈现(我看到它是圆形),但不会影响它与用户的交互方式(我仍然可以单击其边框外的按钮)。我该如何解决?
我在 Chrome 中看到了这种行为。
button
{
cursor: pointer;
outline: none;
background-size: 100% 100%;
background-color: red; /*transparent;*/ /* It's actually red and ROUND. */
background-position: center center;
background-repeat: no-repeat;
border: 0px;
-webkit-border-top-left-radius: 73px;
-webkit-border-top-right-radius: 73px;
-webkit-border-bottom-left-radius: 73px;
-webkit-border-bottom-right-radius: 73px;
width: 146px; height: 146px;
background-image: url('leftarrow.png');
}
问候,
【问题讨论】:
-
我试图避免指针光标位于角落。将附上截图。