sohoer
V2EX  ›  问与答

CSS问题,加上滚动条还是无法把"美女的另一半"显示出来?

  •  
  •   sohoer · Sep 11, 2012 · 3507 views
    This topic created in 5034 days ago, the information mentioned may be changed or developed.
    显示效果:
    http://blog.02ta.com/file/page/blog/test.html

    最下面的DIV怎么把滚动条都隐藏了一部份?

    前端小白只能请大家帮忙看看了。先谢谢!
    5 replies    1970-01-01 08:00:00 +08:00
    handaidai
        1
    handaidai  
       Sep 11, 2012   ❤️ 1
    .tabsview的height:600px干掉
    sohoer
        2
    sohoer  
    OP
       Sep 11, 2012
    @handaidai 先谢谢!
    这个不能干掉啊!
    真实环境就是这么三个DIV,外围DIV是固定高度,里面上DIV(导航功能)也是固定高度,下DIV(内容显示)需要撑满剩余空间所以我用100%
    不懂前台的特性搞死人呀!
    chrisyipw
        3
    chrisyipw  
       Sep 11, 2012   ❤️ 1
    id="tab_1" 的 height 不能是 100%,% 对 height 来说,值的来源是父元素(600px)。
    id="tab_1" 的 height 应该是 父元素的 height - ul 的实际 height。

    你需要好好看看文档搞懂 CSS 的 box 的概念和各种属性的特性。
    sohoer
        4
    sohoer  
    OP
       Sep 11, 2012
    嗯,我好想想,看用什么办法可以解决
    sohoer
        5
    sohoer  
    OP
       Sep 11, 2012
    @chrisyipw 谢了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 06:50 · PVG 14:50 · LAX 23:50 · JFK 02:50
    ♥ Do have faith in what you're doing.