Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的代码中,我有这个:
<p><b>Foo</b> bar</p>
但它呈现为
富吧
如何在行内元素前后保留空格?我想要以下结果:
你这样做是不对的。.
或者更确切地说,你做错了什么,因为你所拥有的应该只是工作。
唯一需要担心的是额外的空间。HTML 不会呈现多个空格。
伙计只需使用nbsp,它看起来像"
"
Foo bar
富 吧