ich eine Website zu erstellen, und ich mache Saum reaktions mit @media, Alle Dinge sind richtig, wenn ich mit Mozilla Schlankheits Ich habe kein ProblemResponsive funktioniert nicht in Telefon
aber wenn ich meine Seite sehen mit meinem Handy alles verloren gehen, sehe ich eine Katastrophe: "(
ich mache Mozilla Größe { 1280px, 980px, 800px, 768px, 360px, 320px }
@media only screen and (max-width : 992px) {
body {
\t background:url(img/Saad.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.logo {
\t background: transparent url("img/logo.png") no-repeat scroll center top;
\t width: 212px;
\t height: 89px;
\t position: absolute;
\t top: 85px;
\t margin-left: 702px;
}
.gauche {
\t margin-top : -253px;
\t float: left;
\t width: 250px;
\t height: 75px;
\t position: absolute;
\t margin-left: 15px; \t
\t }
.rs li {
\t float: left;
\t width: 47px;
\t height: 47px;
\t margin:0px 4px 0px 0px;
}
.players {
width: 700px;
margin: 321px auto;
display: block;
position: relative;
height: 90px;
}
.hicham{
\t display: block;
\t margin: -563px 140px 79px 130px;
\t position: absolute;
}
.hand{
\t display: block;
\t margin: -495px 0px 94px 357px;
}
.basket{
\t margin: -906px 0px 98px 260px;
}
.foot, .hicham, .hand, .basket{
\t -webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.foot:hover, .hicham:hover {
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg);
}
.hand:hover, .basket:hover{
-webkit-transform: rotate(10deg);
-moz-transform: rotate(10deg);
-o-transform: rotate(10deg);
-ms-transform: rotate(10deg);
transform: rotate(10deg);
}
a li{
list-style: none;
}
.fb {
\t background: transparent url("icon/facebook.png") no-repeat center top;
}
.twitter {
\t background: transparent url("icon/twitter.png") no-repeat scroll center top;
\t }
.instagram {
\t background: transparent url("icon/icon4.png") no-repeat scroll center top;
}
.youtube {
\t background: transparent url("icon/youtube.png") no-repeat scroll center top;
}
.sponsors {
\t display: block;
\t width: auto;
\t height: 65px;
\t background: #FFF url("img/pubb.png") no-repeat scroll center top;
\t margin-top: 320px;
}
.copyright {
\t font-family: monospace;
\t color: #FFF;
\t text-transform: inherit;
\t display: block;
\t text-align: center;
\t margin-top: 30px;
\t font-weight: bold;
\t font-size: 12px;
}
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 800px) {
body {
\t background:url(img/Saad.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.logo {
\t background: transparent url("img/logo.png") no-repeat scroll center top;
\t width: 212px;
\t height: 89px;
\t position: absolute;
\t top: 85px;
\t margin-left: 555px;
}
.gauche {
\t margin-top : -253px;
\t float: left;
\t width: 250px;
\t height: 75px;
\t position: absolute;
\t margin-left: 15px; \t
\t }
.rs li {
\t float: left;
\t width: 47px;
\t height: 47px;
\t margin:0px 4px 0px 0px;
}
.players{
\t width: 700px;
\t margin: 354px auto;
\t display: block;
\t position: relative;
\t height: 90px;
}
.hicham{
\t display: block;
\t margin: -563px 140px 79px 130px;
\t position: absolute;
}
.hand{
\t display: block;
\t margin: -495px 0px 94px 357px;
}
.basket{
\t margin: -906px 0px 98px 260px;
}
.foot, .hicham, .hand, .basket{
\t -webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.foot:hover, .hicham:hover {
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg);
}
.hand:hover, .basket:hover{
-webkit-transform: rotate(10deg);
-moz-transform: rotate(10deg);
-o-transform: rotate(10deg);
-ms-transform: rotate(10deg);
transform: rotate(10deg);
}
a li{
list-style: none;
}
.fb {
\t background: transparent url("icon/facebook.png") no-repeat center top;
}
.twitter {
\t background: transparent url("icon/twitter.png") no-repeat scroll center top;
\t }
.instagram {
\t background: transparent url("icon/icon4.png") no-repeat scroll center top;
}
.youtube {
\t background: transparent url("icon/youtube.png") no-repeat scroll center top;
}
.sponsors {
\t display: block;
\t width: auto;
\t height: 65px;
\t background: #FFF url("img/pubb.png") no-repeat scroll center top;
\t margin-top: 320px;
}
.copyright {
\t font-family: monospace;
\t color: #FFF;
\t text-transform: inherit;
\t display: block;
\t text-align: center;
\t margin-top: 30px;
\t font-weight: bold;
\t font-size: 12px;
}
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
\t body {
\t background:url(img/Saad.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.logo {
\t background: transparent url("img/logo.png") no-repeat scroll center top;
\t width: 212px;
\t height: 89px;
\t position: absolute;
\t top: 85px;
\t margin-left: 526px;
}
.gauche {
\t margin-top : -237px;
\t float: left;
\t width: 250px;
\t height: 75px;
\t position: absolute;
\t margin-left: 15px; \t
\t }
.rs li {
\t float: left;
\t width: 47px;
\t height: 47px;
\t margin:0px 4px 0px 0px;
}
.players{
\t width: 700px;
\t margin: 353px auto;
\t display: block;
\t position: relative;
\t height: 90px;
}
.hicham{
\t display: block;
\t margin: -563px 140px 79px 130px;
\t position: absolute;
}
.hand{
\t display: block;
\t margin: -495px 0px 94px 357px;
}
.basket{
\t margin: -906px 0px 98px 260px;
}
.foot, .hicham, .hand, .basket{
\t -webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.foot:hover, .hicham:hover {
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg);
}
.hand:hover, .basket:hover{
-webkit-transform: rotate(10deg);
-moz-transform: rotate(10deg);
-o-transform: rotate(10deg);
-ms-transform: rotate(10deg);
transform: rotate(10deg);
}
a li{
list-style: none;
}
.fb {
\t background: transparent url("icon/facebook.png") no-repeat center top;
}
.twitter {
\t background: transparent url("icon/twitter.png") no-repeat scroll center top;
\t }
.instagram {
\t background: transparent url("icon/icon4.png") no-repeat scroll center top;
}
.youtube {
\t background: transparent url("icon/youtube.png") no-repeat scroll center top;
}
.sponsors {
\t display: block;
\t width: auto;
\t height: 65px;
\t background: #FFF url("img/pubb.png") no-repeat scroll center top;
\t margin-top: 320px;
}
.copyright {
\t font-family: monospace;
\t color: #FFF;
\t text-transform: inherit;
\t display: block;
\t text-align: center;
\t margin-top: 30px;
\t font-weight: bold;
\t font-size: 12px;
}
}
/* Custom, iPhone Retina */
@media only screen and (max-width : 360px) {
\t body {
\t background:url(img/Saad.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.logo {
\t background: transparent url("img/logo.png") no-repeat scroll center top;
\t width: 212px;
\t height: 89px;
\t position: absolute;
\t top: 22px;
\t margin-left: 70px;
}
.gauche {
\t visibility: hidden; \t
\t }
.players{
\t margin: 100px 0px 0px -374px;
}
.foot{
\t margin: -1px 0px 0px 417px;
}
.hicham{
\t display: block;
\t position: absolute;
\t visibility: hidden;
}
.hand{
\t display: block;
\t visibility: hidden;
}
.basket{
\t visibility: hidden;
}
.sponsors {
\t display: block;
\t width: auto;
\t height: 65px;
\t background: #FFF url("img/pubb1.png") no-repeat scroll center top;
\t margin-top: 320px;
}
.copyright {
\t font-family: monospace;
\t color: #FFF;
\t text-transform: inherit;
\t display: block;
\t text-align: center;
\t margin-top: 20px;
\t font-weight: bold;
\t font-size: 12px;
}
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 320px) {
body{
background:url(img/Saad.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
\t overflow-x:hidden;
}
.players {
margin: 131px 0px 0px -405px;
}
.logo {
\t margin: -9px 0px 0px 49px;
}
.gauche {
\t visibility: hidden; \t
\t }
.sponsors {
display: block;
width: auto;
height: 25px;
background: #FFF url("img/pubb1.png") no-repeat scroll center top;
margin-top: 148px;
}
\t
.foot{
\t margin: -28px 0px 0px 461px;
\t width: 200px;
}
.hicham{
\t display: block;
\t position: absolute;
\t visibility: hidden;
}
.hand{
\t display: block;
\t visibility: hidden;
}
.basket{
\t visibility: hidden;
}
.copyright {
\t font-family: monospace;
color: #FFF;
text-transform: inherit;
display: block;
text-align: center;
margin-top: 6px;
font-weight: bold;
font-size: 12px;
}
}
Irgendwelche Hilfe?
Es wäre sehr hilfreich Wenn Sie Ihre css Medienabfragen – boernard
@ boernard gepostet habe, mache ich es – sayou