HTML/CSS iosで背景固定
body:before{
content:"";
display:block;
position:fixed;
top:0;
left:0;
z-index:-1;
width:100%;
height:100vh;
background:url(image.jpg) center no-repeat;
background-size:cover;
}
CSSによる疑似要素によりbodyの前に要素を追加して固定
contentプロパティは必須のため半角スペースを追加
//参考URL
https://y-com.info/contents/?p=5941
https://www.asobou.co.jp/blog/web/css2