【ie6的css不兼容问题】我不会帮忙给个代码,好用马上给分!谢谢了!!!

wipe_tear 2011-03-23 09:39:44
如下代码让图片以100*100的分辨率进行显示,在IE8和CHROME中都非常好用,完美
但是在IE6下面显示的图片很小,完全变了样子,挤在一起了,不会了,求大家!
<style type="text/css">
div#wrap {
display:table;
width:100px;
height:100px;
_position:relative;
overflow:hidden;
}
div#subwrap {
vertical-align:middle;
display:table-cell;
_position:absolute;
_top:50%;
}
div#content {
_position:relative;
_top:-50%;
}
</style>
-----------------------------------------------------------------
<div id="wrap"><div id="subwrap"><div id="content">
<IMG class=picCore alt="Ceramic Structured Packings" src="images/10205.jpg" width='100px' style='vertical-align:top:50%' border=0>
</div></div></div></A>
...全文
107 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hoojo 2011-03-25
  • 打赏
  • 举报
回复
<style type="text/css">
div#wrap {
display:table;
width:100px;
height:100px;
_position:relative;
overflow:hidden;
}
div#subwrap {
vertical-align:middle;
display:table-cell;
_position:absolute;
_top:50%;
}
div#content {
_position:relative;
_top:-50%;
}
</style>
<div id="wrap"><div id="subwrap"><div id="content">
<IMG class=picCore alt="Ceramic Structured Packings" src="http://avatar.profile.csdn.net/6/6/9/2_wipe_tear.jpg" width='100px' style='vertical-align:top:50%' border=0>
</div></div></div></A>
我IE6+试过了没有问题啊,还是100x100的
ycproc 2011-03-25
  • 打赏
  • 举报
回复
因为css 的兼容性问题

你把css里面 img 的属性重置 或者改变部分数值 再看

5,006

社区成员

发帖
与我相关
我的任务
社区描述
解读Web 标准、分析和讨论实际问题、推动网络标准化发展和跨浏览器开发进程,解决各种兼容性问题。
社区管理员
  • 跨浏览器开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧