+ -
当前位置:首页 → 问答吧 → 想到内层大于外层的部分不显示,有什么办法?

想到内层大于外层的部分不显示,有什么办法?

时间:2011-09-15

来源:互联网

HTML code

.aa
{
    width: 100px;
    height: 100px;
    background:green;
}

.bb
{
    width: 300px;
    height: 300px;
    background:blue;
    white-space: nowrap;
}



<div class="aa">
<div class="bb">这里字符很长</div>
</div>


作者: 0316   发布时间: 2011-09-15

aa添加样式:overflow:hidden,默认是auto的。但是光这样效果不怎么地。

作者: ycmjh2010   发布时间: 2011-09-15

热门下载

更多