[英]HTML code to indent without using blockquote (so there is no space on the next line)
我試圖創建一個縮進文本塊而不使用塊引用。 我想這樣做的原因是因為塊引用在縮進的文本塊和前一段之間添加了一個額外的空格。
我希望縮進的文本片段與非縮進文本一起沖洗。
您可以使用padding-left和display:阻止CSS屬性,然后將文本換行以在span中縮進。 例如:
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<span style="padding-left: 20px; display:block">
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
</span>
It was popularised in the 1960s with the release of Letraset sheets containing Lore
</p>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.