我在html中写一个测验,我想在问题之间插入一个一致的空白垂直空间(就像在LaTeX中使用vspace {3 cm}).
例如:
<html> <body> <p> This is the first question? <!-- this is where I want about 3 cm of space --> </p> <p> This is the second question? <!-- this is where I want about 3 cm of space --> </p> </body> </html>
有没有一个直接的方式来做这个使用html和css?
解决方法
读取一些关于css,很有趣:
http://www.w3.org/Style/Examples/007/units.en.html
<style> .bottom-three { margin-bottom: 3cm; } </style> <p class="bottom-three"> This is the first question? </p> <p class="bottom-three"> This is the second question? </p>