iPhone上的背景图像过于放大

问题描述 投票:0回答:1

背景图片在iphone上的其他所有设备上都能正常工作。图像看起来像放大了太多。

提前感谢

.header {

min-height: 100vh;

background: url('/images.jpg') center/cover no-repeat fixed;
margin-top: auto;
padding: 13px 0px;
border-radius: 100px;
border-top-left-radius: 0 ;
border-top-right-radius: 0;
font-weight: bold;

color:white;
cursor: pointer;
border: 2px white;
margin-top: 0;
font-size: 12px;
background-size: cover;



<header class="header">
    <div class="hero">
        <h1 class="title"><img src="/images/Logo_big.png    " alt="logo" class="responsive"></h1>

        <a href="#contact" class="hero-button pulsate">About Us</a>

    </div>
html css ios iphone background-image
1个回答
0
投票

添加此元标记...

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

有帮助吗?

© www.soinside.com 2019 - 2024. All rights reserved.