Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text 后的空格问题 #68

Open
godIsAProgrammer opened this issue Sep 2, 2022 · 3 comments
Open

text 后的空格问题 #68

godIsAProgrammer opened this issue Sep 2, 2022 · 3 comments

Comments

@godIsAProgrammer
Copy link

image
如图,normal 和 Hello world 中间空格。

@Vanisper
Copy link

这个应该是回车的问题
浏览器会将空白字符或者多个空白字符渲染成一个空格

在写html的时候就会有个纠结的地方:
有些地方为了代码结构分明,不得不打回车,但是这就得承担渲染出的html可能会出现空格的”后果“

@godIsAProgrammer
Copy link
Author

其实不回车也一样会出现这个问题。

@XboxYan
Copy link
Owner

XboxYan commented Mar 6, 2023

其实不回车也一样会出现这个问题。

@godIsAProgrammer 其实是默认空格(换行符)的影响,要消除这个空格的影响,可以设置xy-textindex-flex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants