What gradient am I missing?

我是研究僧i 提交于 2020-06-18 07:00:51

问题


csslint.net is giving me this error:

Missing vendor-prefixed CSS gradients for Old Webkit (Safari 4+, Chrome), Opera 11.1+.

.ui-dialog, .grey_box {
  background:  -moz-linear-gradient(top, #fefefe, #dddddd);
  background:  -webkit-linear-gradient(top, #fefefe, #dddddd);
  background:  -ms-linear-gradient(top, #fefefe, #dddddd);
}

回答1:


You need to add these two additional

.ui-dialog, .grey_box {
  background:  -webkit-gradient(top, #fefefe, #dddddd);
  background:  -o-linear-gradient(top, #fefefe, #dddddd);
  background:  -moz-linear-gradient(top, #fefefe, #dddddd);
  background:  -webkit-linear-gradient(top, #fefefe, #dddddd);
  background:  -ms-linear-gradient(top, #fefefe, #dddddd);
}


来源:https://stackoverflow.com/questions/39857551/what-gradient-am-i-missing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!