2014-12-04 71 views
0

我有这样的代码:如何在手机上制作渐变边框?

#likebuttonsmob {margin-left:auto; margin-right:auto; width: 340px; margin-bottom: 8px; padding-left: 23px; padding-top: 4px; border-width: 1px; border-style: solid; border-left: 0px; border-right: 0px; 
border-image: -webkit-linear-gradient(left center , rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34), rgba(119, 119, 119, 0)) 1 1 1 1; 
border-image: -moz-linear-gradient(left center , rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34), rgba(119, 119, 119, 0)) 1 1 1 1; 
border-image: -ms-linear-gradient(left center , rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34), rgba(119, 119, 119, 0)) 1 1 1 1; 
border-image: -o-linear-gradient(left center , rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34), rgba(119, 119, 119, 0)) 1 1 1 1; 
} 

作出一些社交按钮的顶部和底部边框渐变如果页面是比1090px(我的手机更感兴趣)。使用上面的代码,如果我调整窗口的大小,所有东西都可以正常工作,但在我的手机上,顶部和底部的边界都很牢固,我看不到梯度。有人可以帮我解决这个问题吗?提前致谢。

示例页面:http://www.cumseface.eu/viewtopic.php?t=279

+0

很难弄清楚你指的是哪些按钮。 – 2014-12-04 10:30:26

+0

Facebook的按钮,谷歌+和鸣叫。文章上方的那些。 – ForForce 2014-12-04 11:54:41

回答