想依照豆瓣FM的效果做一个自己的界面应用,但是只完成了在FF下的工作,IE下的兼容性真难啊~~既要fixed,又要左右与垂直居中,真的有那么难吗?!!
<html> <head> <title>Test for DIV CSS</title> <style> <!-- body { background-color: #333; margin: 0; padding: 0; height: 100%; overflow: auto; } div.fd { width: 500px; height: 190px; position: fixed; top: 50%; left: 50%; margin: -95px 0 0 -250px; background: url('frame.png'); _position: absolute; _top: expression(eval(document.documentElement.scrollTop)); _margin:0; } p.cp { word-wrap: break-word; word-break: break-all; background-color: white; padding: 48px; width: 400px; margin: 0 auto; font-size: 100px; line-height: 190px; } --> </style> </head> <div class="fd"></div> <p class="cp">界面设计中的结构设计 卖家内在因素对问卷调研有效响应的影响... 移动网页设计的信息组织 PSM模型(价格敏感测试)在网络问卷</p> </body> </html>