Home >Web Front-end >HTML Tutorial >There is no space between line breaks in the article, what should I do? _html/css_WEB-ITnose

There is no space between line breaks in the article, what should I do? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:20:281025browse

This post was last edited by gongshunkai2 on 2013-04-16 17:46:06

The default line breaks in web pages are spaced, but when we make web pages, main.css always requires the following settings : After setting it like this, there is no space between line breaks in the article. What should I do?

div, p, ul, li, ol, dl, dt, dd, form{
padding:0; margin:0;list-style-type: none;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;padding: 0;
}

Reply to discussion (solution)

Setting line Under the high test

line-height:30px;

line-height:150%;
is to increase the line height to 1.5 times the font height


Do you want spacing or not?

What else does 'always need to make the following settings' mean? Is this setting what you need?

The style in main.css is to first define all elements as borderless, borderless, and spacing attributes. If you want to place a DIV on the current page To make it have line spacing, you need to set the line spacing of the specific DIV line-height:22px;

Then you can set the style of the article and cover the main.css.

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