ie6 position relative - zzwind's Blog

ie6 position relative

zzwind posted @ 2010年9月15日 18:52 in 浏览器兼容 , 1163 阅读

 

<style type="text/css">
#div1{position:relative;text-align:center;}
#div2{position:absolute;left:0;top:0;}
</style>
<div id="#div1">
  <div id="#div2">
     zzzzzzz
  </div>
</div>

这个时候#div2  在IE6下 也会居中显示

只要给#div1  加上width:100%;   

#div2  就会乖乖的去左上的位置了

Avatar_small
JK Board Model Paper 说:
2022年9月08日 19:16

JKBOSE Model Paper 2023 Class 5 Pdf Download with Answers for English Medium, Hindi Medium, Urdu Medium & Students for Small Answers, Long Answer, Very Long Answer Questions, and Essay Type Questions to Term1 & Term2 Exams at official website. JK Board Model Paper Class 5 New Exam Scheme or Question Pattern for Sammittive Assignment Exams (SA1 & SA2): Very Long Answer (VLA), Long Answer (LA), Small Answer (SA), Very Small Answer (VSA), Single Answer, Multiple Choice and etc.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee