html - 无法从 wordpress 模板的菜单中删除奇怪的元素

标签 html css wordpress

我正在尝试删除每个菜单元素之间的一些奇怪的分隔符。 当我检查代码时,它们显示为方框字符中的圆圈。

请如果有人知道如何删除它们!

提前致谢

Screenshot from the code

最佳答案

这是一个 Whitespace-only text node .

Firefox 将节点之间的换行符呈现为正方形内的点符号。

Since Firefox 52, the Inspector displays these whitespace nodes, so you can see where the gaps in your markup come from. Whitespace nodes are represented with a dot: and you get an explanatory tooltip when you hover over them

关于html - 无法从 wordpress 模板的菜单中删除奇怪的元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55701666/

相关文章:

Javascript:更改已创建输入的占位符颜色

css - 设置列宽不起作用

php - 使用 WordPress 插件选项中存储的 Mysql 数据

html - 谁能帮我解决 html/css 下拉菜单问题?

css - 在 Firefox 和 IE9+ 上溢出

javascript - 如何使用 javascript 更改 <a> 标签的值?

html - 将页眉保持在固定位置时居中问题

使用反向 NGINX 代理在 Docker 中部署 WordPress 站点

php - 如何在wordpress自定义中添加颜色选项

javascript - 更改 Javascript 中一系列选项卡的背景颜色