【问题标题】:Background image is too zoomed in on iphoneiphone上的背景图片太放大了
【发布时间】:2020-09-25 21:18:52
【问题描述】:

背景图片适用于除 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】:

添加此元标记...

&lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"&gt;

有用吗?

【讨论】:

  • 没有改变任何东西。谢谢你
猜你喜欢
  • 1970-01-01
  • 2017-10-28
  • 2018-02-01
  • 2012-11-10
  • 1970-01-01
  • 2023-03-05
  • 1970-01-01
  • 1970-01-01
  • 2018-08-10
相关资源
最近更新 更多