本文介绍了跨浏览器的CSS固定定位,请看下面的例子:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" 
html xmlns="http://www.w3.org/1999/xhtml" 
head 
 
style type="text/css" 
#fixed{position:fixed;top:5em;right:0;}   /*针对IE7、Opera、Firefox一行搞定*/ 
/style 
/*IE6中利用容器对溢出内容的处理方式来实现的*/ 
!–[if IE 6] 
style type="text/css" 
html{overflow:hidden;} 
body{height:100%;overflow:auto;} 
#fixed{position:absolute;right:17px;}...[ 查看全文 ]