lassoheinz
Ensign
- Registriert
- März 2019
- Beiträge
- 166
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
body{
background: url(https://cdn.pixabay.com/photo/2015/12/04/11/15/sheep-1076405_960_720.jpg);
background-repeat: no-repeat;
background-size: 300px 100px;
}
backgound-size: auto;
body {
background-image: url('w3css.gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
background-image: url(path-to-file/img.jpg);
background-repeat:no-repeat;
background-position: center center;
body{
background-repeat:no-repeat;
background-position: center center;
background-image:url(../images/images2.jpg);
color:#FFF;
font-family:Arial, Helvetica, sans-serif;
min-height:100%;
}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background: black url(back2.png) center center no-repeat;;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
Danke funktioniert auch....Bagbag schrieb:Wenn es dir nur ums scrollen geht, füg das zu bgimg-1 hinzu:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
}
body{
background: url(https://cdn.pixabay.com/photo/2015/12/04/11/15/sheep-1076405_960_720.jpg);
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<p>This example creates a full page background image. Try to resize the browser window to see how it always will cover the full screen (when scrolled to top), and that it scales nicely on all screen sizes.</p>
</body>
</html>