Home  >  Article  >  Backend Development  >  网页板框高度有关问题

网页板框高度有关问题

WBOY
WBOYOriginal
2016-06-13 13:48:04733browse

网页板框高度问题
做一个BBS的浏览页面时出现一个问题


一条回复放在一个div中,div本身有一个固定的高度,当其中的留言很多(显示的行数长度超出其固定高度)时,
它就会根据行数的长度加长。

有没有具有这样功能的CSS,不太想用JS(我一般能用CSS绝不用JS。。。。。) 。


------解决方案--------------------
自己看吧.css的问题不应该发在这的

CSS code


<div style="display:block;width:100px; border:1px solid red;word-wrap: break-word; word-break: normal;">
    <div style="display:block;border:1px solid blue;width:80px;">
        abcdefghijkopqrstuvsaelxiso2
    </div>
</div>
<div style="padding-top: 50px">test</div>
 <div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn