0

导航到以前的评论时,内容会溢出隐藏,请参阅链接。

示例: http: //justfortest.cba.pl/misc/index.html(显示完整内容) http://justfortest.cba.pl/misc/index.html#comment-3(内容被剪切到锚链接)

我发现当我删除溢出时:隐藏;从 .content>div 然后内容没有溢出,但设计被破坏:背景问题和 div 太长。

去除溢出后:隐藏;(div长度和背景的问题)。justfortest.cba.pl/misc/index2.html#comment-3

更新:

这是内容部分的代码:

.content {padding: 40px 0; border-top: 5px solid #e3e4e6; border-bottom: 1px solid #d8d8d8; background: url("images/bg.png");}
.content>div { width: 980px; margin: 0 auto; border: 1px solid #d8d8d8; background: #fff;}
.main {float: left; overflow: hidden; width: 610px; margin-bottom: -5000px; padding: 15px 35px 5030px;}
.sidebar {float: right; width: 260px; margin-bottom: -5000px; padding: 15px 19px 5030px; border-left: 1px solid #e8e8e8; background: #fafbfc;}

你能帮忙解决这个问题吗?

任何帮助将不胜感激。

亲切的问候

4

1 回答 1

1

尝试这个

.main {
  float: left;
  margin-bottom: 0; /* from -5000px */
  overflow: hidden;
  padding: 15px 35px 30px; /* from 15px 35px 5030px */
  width: 610px;
}
于 2013-02-13T15:34:14.467 回答