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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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的语言标志(图像链接)在Wordpress costum主题中不起作用_Css_Wordpress_Image_Hyperlink_Flags - Fatal编程技术网

带有css的语言标志(图像链接)在Wordpress costum主题中不起作用

带有css的语言标志(图像链接)在Wordpress costum主题中不起作用,css,wordpress,image,hyperlink,flags,Css,Wordpress,Image,Hyperlink,Flags,我尝试在我的wordpress自定义主题中添加语言标志(如带有链接的图像)。 图像工作正常,但其链接不起作用。 我的代码: header.php <div class='container'> <div class="flags-holder"> <div class="flag"> <a href="http://example.com"><img src="http://example.com/imgs/en-engl

我尝试在我的wordpress自定义主题中添加语言标志(如带有链接的图像)。 图像工作正常,但其链接不起作用。

我的代码: header.php

<div class='container'>
  <div class="flags-holder">
   <div class="flag">
     <a href="http://example.com"><img src="http://example.com/imgs/en-english.png"></a>
     <a href="http://example.com/en"><img src="http://example.com/imgs/ru-ruskaq.png"></a></div>
   </div>

以CSS中的锚点为目标,并放置display:inline block;我试过了,但没有用相关代码添加工作。在这个网站上工作正常,但在我的网站链接不工作固定。非常感谢你!