|
|
|
用CSS实现一段文字自动底部对齐并随页面滚动
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>将一个对象定位在页面顶部</title> </head> <body> <table><tr><td height="800">你可以试着拖动滚动条</td></tr></table> <div style="position:absolute;height:22pt;top:expression(document.body.clientHeight-this.style.pixelHeight+document.body.scrollTop);font:10.5pt;">我永远显示在最底部,你把滚动条拖烂也没用啊,是谁把我软禁到那里的? </div> </body> </html>
|
|
|
|