html预览为什么不能滚动,为什么我的页面不可滚动?_html_开发99编程知识库

因此,我製作了幾個使用以下css代碼的頁面:html { overflow-y: scroll; }

ul.navbar {

list-style-type: none;

position: fixed;

top: 00px;

left: 00px;

width: 200px;

height: 700px;

background-image:url('/images/B_left-background.png');

}

ul.header {

position: fixed;

top: -20px;

left: 240px;

height: 100px;

width:700px;

background-image:url('/images/B_left-top.png');

}

body {

position: fixed;

top: 100px;

left: 300px;

font-family: Georgia,"Times New Roman",

Times, serif;

background-color: #D6E9B4;

}

div.scrollableContainer {

background: none repeat scroll 0 0 ;

border: 1px solid #999999;

height: 400px;

margin: 40px;

overflow: auto;

width: 800px;

}

h1 {

font-family: Helvetica, Geneva, Arial,

SunSans-Regular, sans-serif }

ul.navbar a {

text-decoration: none }

a.send{

color: black;

background-image:url('/images/send-message-bt.png');

position:fixed;

top:200px;

left:0px;

height:80px;

width:290px;

}

a.token{

color: black;

background-image:url('/images/token-ID-bt.png');

position:fixed;

top:300px;

left:0px;

height:80px;

width:290px;

}

a.history{

color: black;

background-image:url('/images/history-bt.png');

position:fixed;

top:400px;

left:0px;

height:80px;

width:290px;

}

a.comp{

background-image:url('/images/competition-bt.png');

position:fixed;

top:500px;

left:0px;

height:80px;

width:290px;

}

a.out{

background-image:url('/images/B_log-out-bt.png');

position:fixed;

top:600px;

left:50px;

height:60px;

width:160px;

}

我想使整個頁面可以滾動,因這裡如果某個低解析度設備上的某個人仍然可以滾動。 就像你看到的,我放入了: html { 溢出y: 滾動,},但這並不能幫助。

有什麼方法可以解決這個問題? 它與我設定固定高度有關?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值