大家好,又见面了,我是你们的朋友全栈君。
空格
Tab
	
注意,Tab只有在<pre>…</pre>这样的标记内部才起作用,在其他地方只相当于一个空格。
举例
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0//EN” “http://www.w3.org/TR/REC-html40/strict.dtd”>
<html>
<head><meta name=”qrichtext” content=”1″ />
<style type=”text/css”>
p, li { white-space: pre-wrap; }
</style>
</head>
<body style=” font-family:’Times New Roman’; font-size:10pt; font-weight:400; font-style:normal;”>
<!–这里加入了三个空格和三个Tab–>
<pre><p style=” margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;”>灿哥哥 的			博客</p></pre>
<p style=”-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;”></p>
</body>
</html>
显示效果
原创不易,转载请标明出处:https://blog.csdn.net/caoshangpa/article/details/53609134
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/148607.html原文链接:https://javaforall.net