gpt4 book ai didi

css - 样式语言切换器 - 标志(polylang + wordpress)

转载 作者:太空宇宙 更新时间:2023-11-04 08:25:04 29 4
gpt4 key购买 nike

我在现场设计语言切换器时遇到问题。我已经更改了标志,现在我想在当前语言上有不同的图标。

我为当前做这个:

li.lang-item.lang-item-2.lang-item-se.lang-item-first.current-lang a {
background-image: url(../gfx/flag/lang_se_ac.png);
}

但如您所见,这个背景显示在主图像下方。我尝试设置 z-index、位置但无效。

As you can see current icon is under the SE flag

最佳答案

查看代码,该插件使用 img 标签而不是 CSS background-image 属性。

documentation有关如何更改标志的信息。

内容如下:

You have to use PNG or JPG files and name them with the WordPress locale. For example, en_US.png.

Upload these files in the /wp-content/polylang/ directory.

Note: You have to create the directory yourself. Don’t use the /polylang/flags/ directory.

关于css - 样式语言切换器 - 标志(polylang + wordpress),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45238331/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com