如何清除这些讨厌的额外空间 [英] How to remove these pesky extra spaces

查看:77
本文介绍了如何清除这些讨厌的额外空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的wordpress的网页中的顶部小部件显示了一个height属性,当我用chrome开发者工具检查,该高度在窗口小部件的顶部和底部添加了额外的空间(在附图中以黄色显示)。

The top widget on my wordpress page shows a height property when I check it with chrome developer tools, and that height adds extra spaces on top and bottom of the widget (shown in yellow on the attached picture).

我一直在尝试改变或删除那个height属性很多小时,但我不能找到它的起源和如何处理它。

I've been trying for many hours to change or remove that height attribute, but I cant find where it is originated from and how to deal with it.

请帮助!!

推荐答案

看来你有很多 ;#8203; unicode序列在源代码中的元素之前和之后,导致所有不需要的空间。 (使用firebug可见)

it seems you have a lot of ​ unicode sequences before and after your element in the source code causing all that unwanted space. (they are visible using firebug)

您无法在源代码中感知到它们,因为该字符是零宽度空间(U + 200B)

you cannot perceive them in the source code, because that character is the 'ZERO WIDTH SPACE' (U+200B)

这篇关于如何清除这些讨厌的额外空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆