html - 线性渐变在适用于 Ubuntu 的 Firefox 11 规范中不起作用

标签 html css

这是我的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/

相关文章:

CSS 定位未按预期显示

css - 从 auto 过渡到 flex-basis

css - Smooth open sans 无处不在,但不是在我的网站上?

javascript - 我该怎么做才能让我的 cookie 同意横幅为每个用户 (ip) 弹出一次

python - Selenium Python 按文本/样式单击页面上的链接

html - Outlook 365(网络版)和 Gmail(桌面版)无法识别 td 单元格中的 valign 底部代码

html - 图像固定在框的底部

html - 将多个 Flexbox 行的高度设置为始终在浏览器窗口中可见

css - 缩放 Web 前端

javascript - 使用 javascript 或 GWT 在悬停工具提示上