DIV 显示为块时重叠
在此网站上:
http://stmc.modulemedia.co.uk/HossIntropia
我有以下代码由 CMS 生成,我已经尽可能地剥离了内容,删除了 .net 代码和 CMS 生成的内容,但仍然看不到为什么文本(启动 Hoss Intropia...)重叠。
基本上有两个 DIVS LeftCol 和 RightCol,我已将它们从并排移动到 LeftCol 位于 RightCol 之上。
这是我正在接手的一个项目,所以我能改变的内容是有限的。
感谢您的帮助!
On this site:
http://stmc.modulemedia.co.uk/HossIntropia
I have code that's generated by a CMS, I have stripped things back as much as possible, removing the .net code and things generated by the CMS, but still cannot see why the text (that starts Hoss Intropia...) is overlapping.
There are basically two DIVS LeftCol and RightCol, that I have moved from being side-by-side to LeftCol being above RightCol.
This is a project I'm taking over, so I'm limited as to what can be changed.
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为您只需要增加包含内容的
#LeftCol
内的div
的高度。尝试将
.menu
上的height
更改为height: 480px
。或者甚至可以删除高度
。I think you just need to increase the height of the
div
inside#LeftCol
that is containing stuff.Try changing the
height
on.menu
toheight: 480px
. Or perhaps even remove theheight
.div.Menu
有一个 height 属性,由于内容超出了该高度,因此它与div#RightCol
内容重叠。如果您从
div.Menu
中删除高度,它就可以工作div.Menu
has a height property, and since the content is spilling out beyond that height, it overlaps thediv#RightCol
content.if you remove the height from
div.Menu
, it works设置右列的边距应该可以解决问题:
settting the margin of the right cols should solve the problem: