爱问知识人 爱问教育 医院库

关于网页代码与布局的问题

首页

关于网页代码与布局的问题


        

提交回答
好评回答
  • 2008-11-25 19:55:00
      我也遇过这样的问题最后用JS解决:通过JS来控制DIV的位置function sc2(){   tips = document。getElementById("ol");   pos = document。documentElement。scrollTop+document。
      documentElement。clientHeight-document。getElementById("ol")。offsetHeight; if (pos<250) {document。getElementById("ol")。
      style。top="300px";} else if(document。getElementById("ol")。style。bottom>=300) { document。getElementById("ol")。
      style。bottom="250px"; } else { document。getElementById("ol")。style。top=(document。documentElement。scrollTop+document。
      documentElement。clientHeight-document。getElementById("ol")。offsetHeight-50)+"px"; } } function scall(){ sc2();}window。
      onload=scall;window。onscroll=scall;window。
      onresize=scall;<div id=ol style=" :absolute; "> <input type="submit" name="Submit" value="提交" class="button" style=" "> </div>你改下看吧。

    黯***

    2008-11-25 19:55:00

其他答案

    2008-11-25 18:48:00
  • 这个是WC3 也就是浏览器识别你写的是什么语言来的!!!!!! 所以不能去掉,你是会DW 新建文件,这个是自动生成的!答案补充你所说的效果是不是左健双击时整个网页都向上移动,这个是得调用JS来实现的,如果是广告也是通过调用JS来实现的。如果是滚动就用marquee标签

    s***

    2008-11-25 18:48:00

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):