首页 > 如何让微信支持线性渐变?

如何让微信支持线性渐变?

html代码:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <style type="text/css" media="screen">
        body,html{
            width:100%;
            height:100%;
            padding:0;
            margin:0;
        }

        body{
              background: linear-gradient(-150deg, red 15em, #58a 0);
        }
    </style>
</head>
<body>
    
</body>
</html>

只有在微信里一片空白,其他浏览器是好的,会出现渐变效果,求解


我记得是要 这个 -webkit-linear-gradient


background:-webkit-linear-gradient;
background:-o-linear-gradient;
background:-moz-linear-gradient;
background:-ms-linear-gradient;
background:linear-gradient;

【热门文章】
【热门文章】