简体   繁体   English

标头不停留在顶部异常故障

[英]header doesn't stays not on top weird glitch

I need help with the header that doesn't stays in the right spot when the browser size gets smalles 当浏览器尺寸变小时,我需要的标题不能保持在正确位置的帮助

http://eerlijkmbo.nl/ http://eerlijkmbo.nl/

css: CSS:

#header {
    width:100%;
    max-width:420px;
    height:160px;
    overflow:hidden;
    margin:0 auto;
    -webkit-transition:all 0.8s ease;
}

You can just erase the max-width to make it not fluid. 您可以删除最大宽度以使其不流畅。 Then insert it in a div like #headerContainer and make it width: 420px; 然后将其插入到像#headerContainer这样的div中,并使其宽度为:420px;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM