我正在尝试设置最小宽度:800px但它不起作用,我在其他项目上做了完全相同的事情并且它工作正常,我已经尝试了两个chrome和ie但没有区别。我已经看到很多人都有这方面的问题,但因为它在chrome中不起作用,我也被卡住了。
这是一个有效的试用版:http://zimxtrial.ukbigbuy.com/
HI也做了一个小提琴:
有些JS并没有在小提琴中工作,但我怀疑这很重要,它适用于我在浏览器中的测试,所以不用担心。
我还会在这里包含CSS:
body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
min-width: 800px;
}
.navigation {
width: calc(100% - 120px);
height: 50px;
margin: 0px 60px;
position: fixed;
background-color: #f27009;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.light-menu {
width: 100%;
height: 50px;
background-color: rgba(255, 255, 255, 1);
position: fixed;
background-color:rgba(4, 180, 49, 0.6);
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
#nav-center {
width: 100%;
height: 40px;
background-color: #f27009;
margin: 4px 0px;
text-align: center;
border-bottom: dashed 1px #000000;
border-top: dashed 1px #000000;
left: 70px;
margin-left: auto;
margin-right: auto;
}
#nav-center ul {
margin: 0;
}
#nav-center ul li {
list-style: none;
margin: 0 40px 0 0;
display: inline;
}
#nav-left {
width: 70px;
height: 60px;
background-image: url(images/banner_left.png);
margin: 0px 0px;
top: 0px;
left: 0px;
position: fixed;
}
#nav-right {
width: 70px;
height: 60px;
background-image: url(images/banner_right.png);
margin: 0px 0px;
top: 0px;
right: 0px;
position: fixed;
}
.active {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
color: #FFFFFF;
text-decoration: none;
line-height: 40px;
}
a {
font-family:Georgia, "Times New Roman", Times, serif;
font-size: 16px;
color: #000000;
text-decoration: none;
line-height: 40px;
}
#home {
background-color: #FFFFFF;
height: 100%;
width: 100%;
overflow: hidden;
background-image: url(images/home-bg2.png);
}
#section1 {
background-color: #1899d6;
height: 100%;
width: 100%;
}
#section2 {
background-color: #CF0;
height: 100%;
width: 100%;
}
#section3 {
background-color: #ff0000;
height: 100%;
width: 100%;
}
任何帮助都会很棒。