Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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
Css 仅IE8中的WordPress文本小部件存在问题_Css_Wordpress_Internet Explorer 8_Widget - Fatal编程技术网

Css 仅IE8中的WordPress文本小部件存在问题

Css 仅IE8中的WordPress文本小部件存在问题,css,wordpress,internet-explorer-8,widget,Css,Wordpress,Internet Explorer 8,Widget,嗨,我有一个文本小部件,其中有一行文本“在Facebook上与我联系”,显示在页面底部。除IE8外,它在每个浏览器上显示一行。 有人知道IE8为什么要创建换行符,以及我如何修复它吗? 谢谢,Dan,我认为IE8的行为很奇怪,因为你在div选择器中设置文本样式。尝试将该文本包装到标记中: <div class="textwidget"> <a><img/></a> <p>Connect with me on Faceboo

嗨,我有一个文本小部件,其中有一行文本“在Facebook上与我联系”,显示在页面底部。除IE8外,它在每个浏览器上显示一行。 有人知道IE8为什么要创建换行符,以及我如何修复它吗?
谢谢,Dan,我认为IE8的行为很奇怪,因为你在
div
选择器中设置文本样式。尝试将该文本包装到标记中:

<div class="textwidget">
    <a><img/></a>
    <p>Connect with me on Facebook</p> <!-- Wrap it in a paragraph -->
</div>

在Facebook上与我联系


标签定义HTML文档中的分区或节。标签定义段落。在
中包装文本在语义上更为正确。然后对
进行样式设置,直到正确为止。因为我不能编辑代码,而且我正在用IETester进行测试,所以我不能尝试。

您好。我试着添加标签,但没有效果。通过inspect元素查看代码,它似乎没有从文本小部件读取标记。还有什么我可以试试的吗?