如果你缩小我的网站,标题的结构看起来很糟糕。我不知道该怎么办。 This is the link of my website . This is the CSS and HTML structure.希望你能帮助我,我真的需要帮助:(
最佳答案
如果您希望页眉与您的内容保持在中心位置,您将不需要这样做,这不会自然发生。
您应该首先商定您想要内容的宽度(您的容器 div 上有 width: 1100px
,所以我会为您使用它。)
在 .container
的 css 中,将 width: 1100px;
更改为 max-width: 1100px
。
然后在 #header
的 css 中删除 position: absolute;
。添加 max-width: 1100px;边距:0 自动;
关于html - 缩小我的网站时,一切看起来都不对,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26226188/