Home > Backend Development > PHP Tutorial > ios css3阴影用不起来

ios css3阴影用不起来

WBOY
Release: 2016-06-06 20:28:45
Original
1398 people have browsed it

<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>
Copy after login
Copy after login

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

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

<code><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></code>
Copy after login
Copy after login

回复内容:

<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>
Copy after login
Copy after login

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

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

<code><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></code>
Copy after login
Copy after login

没人。。...

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template