CSS
1
Вклад в тег
position: absolute;
.imeg {
position: relative;
width: 100%;
min-height: 100vh;
background: url(https://ai-development.ru/wp-content/uploads/2019/04/cover.jpg) fixed no-repeat;
background-size: cover;
color: #fff;
}
<script type="text/javascript">
var mobiles = array["iPhone", "iPod"];//mobile devices
var i;
for(i=0;i< mobiles.lenght;i++){
//testing if the RE matches the mobile agents
var er = new RegExp(mobiles,"i");
if( er.test( navigation.userAgent ) ) {
window.location = "http://mobile.mysite.com/" ;
}
}
</script>