【发布时间】: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>
【问题讨论】:
-
可能与这个问题有关:stackoverflow.com/questions/20443574/…
-
这能回答你的问题吗? Fixed background image with ios7
标签: html css ios iphone background-image