forked from rebillar/site-accueil-insa
FIXED BG ON WEBKIT ???????
This commit is contained in:
parent
05d81c32ed
commit
4622330a8b
2 changed files with 5 additions and 6 deletions
|
@ -45,7 +45,6 @@ body {
|
||||||
background-color: #499135;
|
background-color: #499135;
|
||||||
background-repeat: no-repeat, no-repeat;
|
background-repeat: no-repeat, no-repeat;
|
||||||
background-size: auto,cover;
|
background-size: auto,cover;
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -61,10 +60,12 @@ body {
|
||||||
@media all and (max-width: 800px) {
|
@media all and (max-width: 800px) {
|
||||||
|
|
||||||
.bg{
|
.bg{
|
||||||
background-position: center center, center center;
|
background-position: 2vw 15vh, center center;
|
||||||
background-size: auto,cover;
|
background-size: auto,cover;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
min-width: 550px;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,8 +131,6 @@ header("Cache-Control: no-cache, must-revalidate");
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('bg').style.backgroundImage = 'url(' + personnage + '),'+ 'url(\"'+background+'\")';
|
document.getElementById('bg').style.backgroundImage = 'url(' + personnage + '),'+ 'url(\"'+background+'\")';
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue