Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.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 图像在表格行中未正确对齐,但文本已对齐_Html_Alignment_Html Table - Fatal编程技术网

Html 图像在表格行中未正确对齐,但文本已对齐

Html 图像在表格行中未正确对齐,但文本已对齐,html,alignment,html-table,Html,Alignment,Html Table,我有一个非常简单的表格,上面有我试图水平对齐的图像。同一行中的文本正确对齐,但img没有对齐。我的HTML代码是 <td><td class="auto-style2" style="text-align: center;"> <p><img alt="" src="http://www.launchpointsecurity.com/image/data/L7000.jpg" style="width: 75px; hei

我有一个非常简单的表格,上面有我试图水平对齐的图像。同一行中的文本正确对齐,但img没有对齐。我的HTML代码是

       <td><td class="auto-style2" style="text-align: center;">
        <p><img alt="" src="http://www.launchpointsecurity.com/image/data/L7000.jpg" style="width: 75px; height: 60px;" /></p>

        <p><strong>Control Panel</strong></p>
        </td>
相当直截了当的代码,我一辈子都不明白为什么它不能正确对齐图像


可以在

上看到一个实例,我在JSFIDLE中测试了您的代码,我看到img居中

check here: https://jsfiddle.net/dquinonez/mvcd3sos/

我在JSFIDLE中测试了您的代码,我看到img位于中间

check here: https://jsfiddle.net/dquinonez/mvcd3sos/

我想知道为什么webbrowser不能正确解析它。。。?它也会显示在博客所见即所得编辑器上,但当通过IE或Chrome加载时,它不会居中。请在您的帖子中添加您编写的代码,并对其进行编辑,以便我们能够单击您的链接。谢谢。我想知道为什么webbrowser不能正确解析它。。。?它也会显示在博客所见即所得编辑器上,但当通过IE或Chrome加载时,它不会居中。请在您的帖子中添加您编写的代码,并对其进行编辑,以便我们能够单击您的链接。谢谢。你的帖子里的链接好像坏了。它给了我一个关于Chrome的致命错误。你可以在你的帖子中添加图片还是替换链接?你在帖子中包含的链接似乎已断开。它给了我一个关于Chrome的致命错误。你可以在你的帖子中添加图片或替换链接吗?