【CSS的IE6兼容问题】不会了,帮我改一下代码,好使马上全额给分

wipe_tear 2011-03-23 09:38:23
如下代码让图片以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>
...全文
44 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ycproc 2011-03-25
  • 打赏
  • 举报
回复
因为css 的兼容性问题

你把css里面 img 的属性重置 或者改变部分数值 再看
Dogfish 2011-03-24
  • 打赏
  • 举报
回复
是不是position的写法ie没有执行到?
kaifadi 2011-03-23
  • 打赏
  • 举报
回复
<IMG class=picCore alt="Ceramic Structured Packings" src="images/10205.jpg" width='100px' style='vertical-align:top:50%' border=0>
改为:
<IMG class=picCore alt="Ceramic Structured Packings" src="1.jpg" style='width:120px;height:120px;vertical-align:top:50%' border=0>

Try it!

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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