当我将视图从纵向切换到横向时,我的测试网站页面看起来很好。当我切换回来时,它不会重置为它的第一眼看法。有什么想法吗?
http://www.dorsettourist.co.uk/places-to-visit/coy-pond/coy-pond.html
meta name="viewport" content="width=device-width, initial-scale=1"
.menu-trigger {
display:none;
}
@media screen and (max-width:480px) {
.menu-trigger {
display:block;
float:left;
width:100%;
background-color:rgb(76,171,41);
color:white;
}
div.menu {
display:none;
}
div.menu-expanded {
display:block;width:100%
}
}