只是想知道是否有任何人有解决问题的经验,我已经使用按钮的3D效果悬停状态。3D效果按钮悬停状态CSS(可能的错误?)
http://jsfiddle.net/andeh/b47xor6d/
.button{
cursor: pointer;
display: block;
line-height: 44px;
height: 44px;
width: 159px;
background: #ff9600;
border-radius: 5px;
text-align: center;
font-size: 18px;
color: #fff;
}
.button:hover {
display: block;
min-height: 44px;
min-width: 159px;
background: #e68700;
border-radius: 5px;
text-align: center;
font-size: 18px;
border: 0 solid #fff;
color: #fff;
position: relative;
top: -5px;
bottom: auto;
left: -5px;
right: auto;
cursor: pointer;
background: #e68700;
box-shadow: #c2c2c2 1px 1px, #c2c2c2 2px 2px, #c2c2c2 3px 3px, #c2c2c2 4px 4px, #c2c2c2 5px 5px;
}
正如你可以在我的例子中看到的,是什么问题,就是当你将鼠标悬停在该按钮时,如果你的光标上的影子,然后悬停状态将停用。 据我所知,这是因为我本质上将按钮从光标移开,但我认为创建的阴影可能会如何保留悬停状态?
如果任何人知道任何修复将是伟大的!但在当下它只是一种刺激而已。
谢谢!
安迪
您使用的效果的盒子阴影。一个影子。即就像在说'在这里,你站在我身上吗?'而有人站在你的身后。 – jbutler483 2015-02-06 15:04:48
@ jbutler483你有不同的方法,广泛兼容? – 2015-02-06 17:40:57