ios css3阴影用不起来



 <!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>计划</title>
    <style type="text/css">
        div{
            box-shadow:0 0 20px rgba(0, 0, 0, .5); 
            width: 100%;
            height: 300px;
        }
    </style>
</head>
<body>
    <div>
        asdadasda
    </div>

</body>
</html>

上面这段代码在6plus中没有效果,iphone6有效果

再6p中,去掉下面这个就有了,或者给div设置背景色也可以出现阴影


 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

css3 HTML html5 css php

NHK牌丸子酱 9 years, 4 months ago

没人。。...

 llyb み answered 9 years, 4 months ago

Your Answer