大家看一下,这个面板如何实现的。 http://www.goodbaby.com/打开上面这个网站,待所页面全部打开后,一直在最底部的“我的菜单”这条面板是如何实现的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用层吧,一个层放的菜单栏,另一个就放了一个按纽。调用javascript函数实现层的控制 个人意见, <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>test</title><script>window.onload = setDivPos;window.onscroll = setDivPos;window.onresize = setDivPos;function setDivPos(){ var divObj = document.getElementById("div1"); divObj.style.width = document.body.clientWidth; divObj.style.left = document.body.scrollLeft; divObj.style.top = document.body.scrollTop+document.body.clientHeight-divObj.offsetHeight;}</script></head><body><div style="height:1500px;width:1500px"></div><div id="div1" style="position:absolute;height:20px;background-color:#cccccc"></div></body></html> 为什么这个前加上这个就不发生作用了<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> js 判断空对象 把代码一的效果用Script展现在代码二中的div里,怎么弄。 Firebug不能单步调试的问题 求 js设置打印 横打 竖打的代码 htm里面如何引用asp文件?在线等! 列表框单击事件 easyui draggable input 不能响应鼠标事件 如何取到windows update的右框架网页的源码? 怎样使用全局变量?(急) 关于javascript的表格替换问题(100分求解,分不够在加) 关于IE6的隐藏最大化等工具和IE8的不同、?如何实现IE8的功能隐藏 js获取文件大小的问题?
个人意见,
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test</title>
<script>
window.onload = setDivPos;
window.onscroll = setDivPos;
window.onresize = setDivPos;
function setDivPos(){
var divObj = document.getElementById("div1");
divObj.style.width = document.body.clientWidth;
divObj.style.left = document.body.scrollLeft;
divObj.style.top = document.body.scrollTop+document.body.clientHeight-divObj.offsetHeight;
}
</script>
</head><body>
<div style="height:1500px;width:1500px"></div>
<div id="div1" style="position:absolute;height:20px;background-color:#cccccc">
</div>
</body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">