开发者社区> 问答> 正文

IE下面如何给thead设置渐变

CSS如下:

table thead{
    background: #fcfcfc; /* Old browsers */
    background: -moz-linear-gradient(top,  #fcfcfc 0%, #eeeff2 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfcfc), color-stop(100%,#eeeff2)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fcfcfc 0%,#eeeff2 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fcfcfc 0%,#eeeff2 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fcfcfc 0%,#eeeff2 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fcfcfc 0%,#eeeff2 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#eeeff2',GradientType=0 ); /* IE6-9 */
}

在Chrome、Firefox下面都有效果,但是IE9以下,直接显示#FCFCFC。

question:

如何让IE下面也能实现类似的效果

展开
收起
a123456678 2016-03-24 16:59:13 2076 0
1 条回答
写回答
取消 提交回答
  • 给 thead 中的 th 或 td 设置样式。

    2019-07-17 19:13:06
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载