编辑:抱歉!看来我是个白痴。它正在工作,只是颜色太相似了。漫长的一天哈哈。
我正在尝试在某些表格标题上设置渐变背景:
我之前对渐变使用了完全相同的代码,但我不明白为什么它不起作用:-/
#content.postagepage table th.columnwidthbig {
color:#fff;
background-color: #3d9520;
background-image: -webkit-linear-gradient(top, #589D3D, #3d9520);
background-image: -moz-linear-gradient(top, #589D3D, #3d9520);
background-image: -o-linear-gradient(top, #589D3D, #3d9520);
background-image: -ms-linear-gradient(top, #589D3D, #3d9520);
background-image: linear-gradient(top, #589D3D, #3d9520);
text-shadow: 1px 1px 5px #000;
}
最佳答案
实际上,在 FF 中这是有效,但两种颜色#589D3D、#3d9520 非常相似,乍一看渐变无法真正识别。
我将颜色更改为 background-image: -moz-linear-gradient(top, blue, yellow);
它变得更加明显。
关于html - 如何在表格标题上设置渐变背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16888082/