<code> <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> <div> asdadasda </div> </code>
上面这段代码在6plus中没有效果,iphone6有效果
再6p中,去掉下面这个就有了,或者给div设置背景色也可以出现阴影
<code><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></code>
<code> <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> <div> asdadasda </div> </code>
上面这段代码在6plus中没有效果,iphone6有效果
再6p中,去掉下面这个就有了,或者给div设置背景色也可以出现阴影
<code><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></code>
没人。。...