我试图在 Firefox 中创建渐变边框,但没有运气,在 chrome 中它完美地显示以下代码:
#navigationBarContainer ul li {
text-transform:uppercase;
font-family: optima;
font-size:23px;
text-align: center;
padding-top:8px;
padding-bottom:8px;
border-image: linear-gradient(0deg, transparent, #FFFFFF 50%, transparent) 1 0 100%;
-webkit-border-image: -webkit-linear-gradient(0deg, transparent, #FFFFFF 50%, transparent) 1 0 100%;
-o-border-image: -o-linear-gradient(0deg, transparent, #FFFFFF 50%, transparent) 1 0 100%;
-moz-border-image: -moz-linear-gradient(0deg, transparent, #FFFFFF 50%, transparent) 1 0 100%;
border-bottom-width: 2px;
我一直在尝试使用 mozilla 的边框底部属性和某些变体,但它似乎不起作用:
-moz-border-bottom-colors: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 15%, rgba(255,255,255,1) 19%, rgba(255,255,255,1) 25%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 75%, rgba(255,255,255,1) 81%, rgba(255,255,255,0.8) 85%, rgba(255,255,255,0) 100%); /* FF3.6+ */
有没有正确的方法来完成这个?不使用图像?
提前致谢。