无法垂直滚动

时间:2013-03-29 10:41:09

标签: css

我有这个页面:

http://projects.kleelof.com/rr_chat_roulette/

这是一个非常简单的页面,但由于某种原因,当页面太高时,垂直滚动条不会亮起。

有人可以快速查看并告诉我我做错了吗?

我将在下面发布CSS和相关的HTML:

CSS:

    body
{
    width: 100%;
    background-color: #000000;
    color: #ffffff;
}

#main_area
{
    width: 1000px;
    padding-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.bottom_text
{
    font-family: 'Source Sans Pro', serif;
}

HTML:

    <div id="main_area">
        <center>
            <img src="images/header.png"/>
            <br/><br/>
            <div id="altContent" style="width:900px; background-color:#000000;">
                <h1>rickrose_chat_roulette</h1>
                <p><a href="http://www.adobe.com/go/getflashplayer">Get Adobe Flash player</a></p>
            </div>
            <br/><br/>
            <span class="bottom_text" style="font-size: 24px;">Chatroulette & 

Omegle Alternative for Hot Good Looking People</span>
                <br/><br/>
                <span class="bottom_text" style="font-size: 14px;">

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span> 
        </center>

    </div>
小心, 利

1 个答案:

答案 0 :(得分:1)

在回答您的问题时,在主CSS文件的第31行,您有html,body{overflow:hidden)如果您将其更改为auto,那么这将解决您的问题。