这是我的CSS
* {
background: linear-gradient(to right, blue, white);
}
我的 html 只是基本标签(没有 div,什么都没有)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="10">
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<title>Corruption in India</title>
<body>
</body>
</html>
但是就是没有出现
最佳答案
Firefox 11 不支持新的渐变语法。用于旧版本的符号是:
background: -moz-linear-gradient(left, blue, white);
当然,您可以同时使用这两者(以及其余前缀)来涵盖所有基础。
关于html - 线性渐变在适用于 Ubuntu 的 Firefox 11 规范中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19310609/