全兼容的移动端渐变写法

/* Firefox 3.6+ */
background: -moz-linear-gradient(top, #f46ba0, #ee3a80);
/* Safari 4-5, Chrome 1-9 */
background: -webkit-gradient(linear,top,from(#f46ba0),to(#ee3a80));
/* Safari 5.1+, Chrome 10+ */
background: -webkit-linear-gradient(top, #f46ba0, #ee3a80);
/* Opera 11.10+ */
background: -o-linear-gradient(top, #f46ba0, #ee3a80);
/* default */
background: linear-gradient(top, #f46ba0, #ee3a80);
background-color: #ee3a80;

在苹果的IOS系统下input框加纯色背景色会出现问题,可用同一颜色渐变来解决

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章