我的HTML页面未在浏览器中滚动 [英] My html page is not scrolling in browsers

查看:66
本文介绍了我的HTML页面未在浏览器中滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我网站上的页面没有滚动。如果内容超出屏幕显示的容量,您将无法实际看到它,因为滚动无法正常工作。我不是CSS专家,也不知道问题是否出在CSS或HTML。

The page on my website is not scrolling. If there are more content than screen can fit you can not actually see it because scroll is not working. I'm not and CSS guru and I don't know if the problem is actually with CSS or HTML.

我花了一些时间来理解问题,但我不是CSS专家,所以希望有人能帮助我。该页面正在使用tweeter-bootstrap和自定义主题(我没有写过)。当我不包含主题CSS文件时,滚动正常。

I've spend some time trying to understand the problem but i'm not a CSS guru so I hope someone can help me. The page is using tweeter-bootstrap and custom theme for it (which i did not write). When I don't include theme CSS file scrolling is working fine.

我的主题CSS文件的一部分:

Part of my theme CSS file:

body {
    color: #000;
    font-family: 'Play', sans-serif;
    font-size: 16px;
    line-height: 25px;
    background: #e0dbcd url('../images/bg.jpg');
    letter-spacing:0.2px;
    overflow: hidden;
}


推荐答案

删除溢出:隐藏; theme.css文件中的正文中的

remove overflow: hidden; from body in the bootstrap-theme.css file.

这篇关于我的HTML页面未在浏览器中滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆