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.
我需要根据我的自定义操作在单词后面添加一些内容。
例如句子中的“我需要走路”
我只需要在右侧的“需要”一词中插入空格。
我尝试使用单词空间,但它适用于整个标签,但我只想为特定单词提供额外的空间。
如何实现这个javascript或任何其他方法?
如果您知道需要填充的特定单词,一个相对简单的解决方案是将需要添加空格的单词放入它自己的位置<span>,并使用适当的margin-right.
<span>
margin-right