我用过CSSborder-image
在菜单栏中达到一定的效果。它在 Firefox 中运行良好。但在 Chrome 中不起作用。
See www.imptools.com http://www.imptools.com。 chrome 有什么解决办法吗?
CSS
nav.mainMenu{
width:@16cols; height: 50px;
margin:0 auto; position: relative;
top:-25px;
ul{
width:100%; height:50px; overflow: visible;
background: url('../imgs/gun_metal.png');
border-radius: 15px; box-shadow: 0px 3px 3px @dark;
li{
float:left; width: auto;
margin: 0 20px; overflow: visible;
height: 80px; position:relative; top:-15px;
a{
width: auto; height: auto;
float:left; padding: 0 15px;
font-family: @sansSec;
color:@light;
line-height: 80px;
font-size: 24px;
font-weight: bold;
text-shadow: 3px 3px 3px @dark;
}
}
li.active, li:hover{
background: @primary;
border-radius: 15px 0 15px 15px;
border-image:url(../imgs/menu_active_bg.png);
border-image-width:15px 15px 0px 0px;
border-image-outset: 0px 15px;
}
}
在设置图像之前尝试设置边框,如下所示
border: 50px solid transparent;
我注意到在 Safari 中这个声明并不重要,但在 chrome 中确实很重要
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)