Home >Web Front-end >HTML Tutorial >How to display empty paragraphs? _html/css_WEB-ITnose

How to display empty paragraphs? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:131300browse

Empty paragraphs such as

are displayed in the Dreamweaver design view, and each empty paragraph occupies one line. Why is it not displayed when previewing the page? For example:

1




2


There are 4 lines in the Dreamweaver design view, but there are only two lines 1 and 2 in the preview page. Only

 

will occupy a line.

Can empty paragraphs like

be displayed faithfully on the page like

 

?


Reply to discussion (solution)

p{height:20px;line-height:20px;overflow:hidden;}

Try setting the line height

The row height has already been set, but that doesn’t work. The method on the first floor is better! Try setting the row height

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn