0

我有这个页面:

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>

保重,李

4

1 回答 1

1

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

于 2013-03-29T10:47:35.193 回答