问题陈述:
div
有灰色边框和框阴影border:none
和 box-shadow:none
HTML:
<div id="test"></div>
CSS:
#test{
border:2px gray solid;
box-shadow:0px 0px 5px 0px gray;
width:160px;
height:100px; background:url('http://www.w3.org/2008/site/images/logo-w3c-screen-lg')
}
#test:hover{
box-shadow:none;
border:none;
}
使用
border-color:transparent
代替 border:none
#test:hover{
box-shadow:none;
border-color:transparent;
}