js怎么让div始终靠窗体右下角 js怎么让div始终靠窗体右下角 ,随着最大/小化,即使拉动窗体的宽度也不变。怎么实现,哥哥姐姐们? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>test</title><style>html {background:#ccc;}body {margin:0; padding:0 10px 0 10px; border:0; height:100%; overflow:auto; background:#ccc;}body {font-family: georgia, serif; font-size:12px;}#menu {display:block; bottom:2px; right:2px; width:130px; position:fixed; border:1px solid #990000; padding:10px; text-align:center; font-weight:bold; color:#990000; background:#fff;}* html #menu {position:absolute;}/*only for ie*/</style><!--[if IE 6]> <style type="text/css"> /*<![CDATA[*/ html {overflow-x:auto; overflow-y:hidden;} /*]]>*/ </style><![endif]--></head><body><div style="background-color:#aa1234;width:200px;height:1000px"> <div id="menu">容器</div></div><div style="height:2000px;">2</div></body></html> position:[fixed];属性值更改为[absolute] css就可以了,没必要用js,style="border:1px;bottom:1px;right:1px" 用document.body.clientWidth document.body.clientHeight来计算页面的高和宽, 谢了1楼兄弟, bottom:2px; right:2px; 这两个样式是关键。 用户控件中使用jQuery获取不了控件? 怎么实现超级连接提交表单且验证提交的内容 如何修改样式 关于使用jquery写一个类似portlets功能的问题 请问通过rowindex即行号,怎么得到该行的对象? 小菜鸟请教---------JavaScript弹出窗口问题~~ 当点击一张图片时,如何将该图片上的链接去掉?问题解决后立结~~~~~~~~~~ 如何获得图片的实际大小 求一JS代码,实现限制搜索关键字的,要求是0-9,a-z,A-Z,和汉字,这样的函数或者是正则表达式也可以,谢谢了 怎么调用js中的函数。 关于··· fireFox 中怎么设置frameset的height
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test</title>
<style>
html {background:#ccc;}
body {margin:0; padding:0 10px 0 10px; border:0; height:100%; overflow:auto; background:#ccc;}
body {font-family: georgia, serif; font-size:12px;}
#menu {display:block; bottom:2px; right:2px; width:130px; position:fixed; border:1px solid #990000; padding:10px; text-align:center; font-weight:bold; color:#990000; background:#fff;}
* html #menu {position:absolute;}/*only for ie*/
</style>
<!--[if IE 6]> <style type="text/css"> /*<![CDATA[*/ html {overflow-x:auto; overflow-y:hidden;} /*]]>*/ </style><![endif]-->
</head>
<body>
<div style="background-color:#aa1234;width:200px;height:1000px">
<div id="menu">容器</div>
</div>
<div style="height:2000px;">2</div>
</body>
</html>
style="border:1px;bottom:1px;right:1px"