无法获得 100% 高度来处理 Wrapper。 html、body 和外包装处于 100% 需要可见溢出
已解决:必须浮动 #main div,并对结构进行很多其他重大更改。但致命一击是浮动。
可以在 http://thepremium.ca/amodestblog 查看有问题的网站
问题是我需要 #main div具有可见溢出,以便显示位于可见 div 外部左侧的日期 div。
如果我设置溢出(当前处于隐藏状态),我会丢失背景颜色,因为 div 的高度缩小到大约 20 像素。 100%没用。
我追溯到 #wrapper div 的一个问题,它也没有达到分配的 100% 高度,这没有多大意义,因为它所在的 #wrapper-background div 正在采用完整的高度浏览器的高度,以及
希望有人能想出一个解决方案。请查看网站本身的源代码,我有太多不同的 css 文件(使用 wordpress 主题),无法将所有不同的 css 放在这里。
Solved : had to float the #main div, plus quite a lot of other major changes to the structure. But the coup-de-gras was the float.
The site in question can be viewed at http://thepremium.ca/amodestblog
Problem is I need the #main div to have a visible overflow in order to show the date divs that are -positioned to the left, outside the visible div.
If I set the overflow (which is currently hidden) I lose my background color because the div shrinks down to about 20px in height. 100% doesn't work.
I traced it back to a problem with the #wrapper div which is also not taking to the 100% height which it is assigned, which isn't making a lot of sense because the #wrapper-background div it is inside is adopting the full height of the browser, along with and
Hopefully someone can come up with a solution to this one. Please view the source on the site itself, I've got too many different css files (using wordpress thematic theme) to put all the different css in here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有点麻烦,但您可以将功能区前面的 div 更改为固定位置,然后使用 left 和 top 将 div 放置在您想要的位置。
否则,我会重组页面以确保日期功能区不是 #main div 的子级。
It's a bit of a hack, but you could change the ribbon-front div to fixed position and then use left and top to position the div where you want it.
Otherwise I'd restructure the page to ensure the date ribbon was not a child of the #main div.