我正在尝试使用HTML5来模仿APA6写作标准。我想让标题标签(
<h>
)3-6不换行,但不确定是否/如何通过修改CSS样式来实现此目的。
脚本的JSFiddle
<html>
<head>
<title>Title</title>
<style>
h3 {font-size: 16px; font-weight:bold;}
</style>
</head>
<body>
<h2>What it looks like...</h2><hr>
<h3>Level 3 Header.</h3>
<p>Content here. Lots of random text to make an academic sound smart.. I've done my best to maintain APA6 standards in this document but within HTML5 some rules do not make sense. For instance, there are no page breaks.</p>
<br><br><br><br>
<h2>What I'd like it to look like...</h2><hr>
<p><b>Level 3 Header.</b> Content here. Lots of random text to make an academic sound smart.. I've done my best to maintain APA6 standards in this document but within HTML5 some rules do not make sense. For instance, there are no page breaks.</p>
</body>
</html>
<p>
标签之后,请使用此方法。但是,我处理的html文件中所有内容都包含在p标签中,除非将它们删除,否则似乎无法正常工作。 - Tyler Rinker