我知道HTML对空格不敏感。但是我可以用什么来在单词或短语之间留出空格呢?我已经尝试过<p></p>这样的标签,但是超文本标记语言自动忽略了它。
有人能给我示例代码吗?
发布于 2015-01-19 04:48:53
如果你正在寻找段落缩进,那么你可以在CSS中使用'text- indent‘声明。
<!DOCTYPE html>
<html>
<head>
<style>
p { text-indent: 50px; }
</style>
</head>
<body>
<p>This paragraph will be indented by 50px. I hope this helps! Only the first line will be indented.</p>
</body>
</html>https://stackoverflow.com/questions/12144968
复制相似问题