这是我第一次建立一个响应式网站,到目前为止一直很好。但现在的问题是它在谷歌浏览器上工作正常(在手机和切换设备模式下测试),但在Firefox上没有。 如果你在设备模式下打开它,你可以看到我的意思(Firefox)。
任何人都知道问题是什么?
我不认为html代码是必要的和css代码。因为我认为问题在于第一行代码,但以防万一我把css代码放了。
编辑:320 x 480像素
CSS:
@media only screen and (min-width: 320px) and (orientation:portrait){ /*Mobiel portrait modus*/
html, body
{
margin: 0;
font-family: arial;
height: 100%;
}
.link
{
color: inherit;
text-decoration: none;
}
.top
{
position: fixed;
z-index:9999;
background: #80c217; /* Old browsers */
background: -moz-linear-gradient(top, #80c217 0%, #80c217 37%, #80c217 40%, #a1d54f 66%, #7cbc0a 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#80c217), color-stop(37%,#80c217), color-stop(40%,#80c217), color-stop(66%,#a1d54f), color-stop(100%,#7cbc0a)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #80c217 0%,#80c217 37%,#80c217 40%,#a1d54f 66%,#7cbc0a 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #80c217 0%,#80c217 37%,#80c217 40%,#a1d54f 66%,#7cbc0a 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #80c217 0%,#80c217 37%,#80c217 40%,#a1d54f 66%,#7cbc0a 100%); /* IE10+ */
background: linear-gradient(to bottom, #80c217 0%,#80c217 37%,#80c217 40%,#a1d54f 66%,#7cbc0a 100%); /* W3C */
width: 100%;
height: 200px;
}
h1, h2
{
display: inline;
}
.menu
{
width: 70px;
float:right;
margin-right: -220px;
}
h1
{
font-size: 30px;
}
h2
{
font-size: 18px;
}
.logo
{
float:right;
width: 150px;
padding-top: 75px;
padding-right: 75px;
}
.title
{
float:left;
padding-left: 75px;
padding-top: 75px;
}
.navbar
{
margin-top: 199px;
position: fixed;
background-color: black;
color:white;
width: 100%;
height: 250px;
padding-top: 5px;
padding-bottom: 15px;
overflow:hidden;
z-index: 200;
}
.nav
{
list-style-type: none;
margin-left: -40px;
margin-top: -4px;
}
.nav li
{
padding-top: 5px;
font-size: 40px;
text-align: center;
border-top:1px solid white;
}
.nav li:last-child
{
border-bottom:1px solid white;
}
.head2
{
font-size: 40px;
}
.links
{
text-align: left;
list-style-type:none;
padding-left: 50px;
padding-right: 50px;
}
.middle
{
text-align:center;
padding-top: 200px;
position:relative;
background-color: #ccd3c3;
width: 100%;
height: 950px;
font-size: 30px;
overflow: hidden;
padding-bottom: 50px;
}
.middlemachtiging
{
text-align:center;
padding-top: 200px;
position:relative;
background-color: #ccd3c3;
width: 100%;
height: 710px;
font-size: 30px;
overflow: hidden;
padding-bottom: 50px;
}
.middleprijzen
{
text-align:center;
padding-top: 200px;
position:relative;
background-color: #ccd3c3;
width: 100%;
height: 1150px;
font-size: 30px;
overflow: hidden;
padding-bottom: 50px;
}
.text
{
text-align: left;
padding-left: 50px;
padding-right: 50px;
}
.auto
{
width: 100%;
overflow: hidden;
}
footer
{
overflow: hidden;
background: #9ffe62;
color:black;
width:100%;
height:150px;
position: relative;
text-align: center;
}
footer p
{
padding-top: 45px;
}
}
.pricetable
{
font-size: 30px;
}