谷歌Chrome Bug - 溢出:自动|滚动不起作用

时间:2014-05-04 22:41:27

标签: css google-chrome overflow

这是我在Chrome浏览器中的网站,文字在框外运行:

enter image description here

这里是.IE没有问题

enter image description here

这是相关的CSS

.section
{
height: 1000px;
width: 670px;
border: thick solid rgb(51,97,120);
border-radius: 15px;
text-align: center;
padding: 0px;
background-image: url(Images/diag_pattern.png);
background-color: rgb(255,255,255);
overflow:auto;
white-space:nowrap;
text-overflow:ellipses;
}

很讨厌?有什么我可以做的。显示结果的另一种方法是什么?

1 个答案:

答案 0 :(得分:1)

您需要同时修改sectiontextarea类:

.section {
    height: 1000px;
    width: 670px;
    border: thick solid rgb(51, 97, 120);
    border-radius: 15px;
    text-align: center;
    padding: 0px;
    background-image: url(Images/diag_pattern.png);
    background-color: rgb(255, 255, 255);
    overflow-y: hidden;      /* ---- Make this hidden */
    white-space: nowrap;
    text-overflow: ellipsis;
}
.textarea {
    height: 1000px;
    width: 650;
    padding-right: 20px;
    padding-left: 20px;
    list-style: none;
    overflow-y: scroll;      /* ---- Then make this scrollable */
}