Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在Photoshop中为web保存的切片页面在IE中看起来很糟糕_Html_Css - Fatal编程技术网

Html 在Photoshop中为web保存的切片页面在IE中看起来很糟糕

Html 在Photoshop中为web保存的切片页面在IE中看起来很糟糕,html,css,Html,Css,我通过Photoshop制作网页,将其切片并保存为web,然后上传html文件。它在Firefox和Chrome中看起来还不错,但IE则完全不同。有人知道怎么修吗?还有我为什么要买这个黑色的垫子 IE: 代码: 试着把这个放到你的css文件中 img { border:0; padding:0; margin:0; } 或者在head标签中写入 <style type="text/css"> img { border:0; p

我通过Photoshop制作网页,将其切片并保存为web,然后上传html文件。它在Firefox和Chrome中看起来还不错,但IE则完全不同。有人知道怎么修吗?还有我为什么要买这个黑色的垫子

IE:
代码:


试着把这个放到你的css文件中

img {
   border:0;
   padding:0;
   margin:0;
}
或者在head标签中写入

<style type="text/css">
    img {
       border:0;
       padding:0;
       margin:0;
    }
</style>

试着把这个放到你的css文件中

img {
   border:0;
   padding:0;
   margin:0;
}
或者在head标签中写入

<style type="text/css">
    img {
       border:0;
       padding:0;
       margin:0;
    }
</style>

您可以尝试从使用表格模式切换到使用css导出模式吗

关于Matei Mihai的回答,您可能还应该添加以下内容:

img {
   border:0;
   padding:0;
   margin:0;
   display:block; /* This often removes extra spacing around images in IE */
}

您可以尝试从使用表格模式切换到使用css导出模式吗

关于Matei Mihai的回答,您可能还应该添加以下内容:

img {
   border:0;
   padding:0;
   margin:0;
   display:block; /* This often removes extra spacing around images in IE */
}

IE9,但它在所有IE中看起来都一样,9,8,7你能发布你的html代码吗?或者最好是JSFIDDLEE9,但它在所有IE中看起来都一样,9,8,7您能发布html代码吗?或者更好的方法是使用jsfiddletry:tr{margin:0;padding:0;border:0;}td{margin:0;padding:0;border:0;}img{border:0;padding:0;margin:0;}--并且没有帮助tr{margin:0;padding:0;border:0;}td{margin margin:0;padding:0;border:0;}img{border:0;padding:0;margin:0;}--