How to deal with leaving a blank line at the top and bottom of the form when inserting a form

php中世界最好的语言
Release: 2018-01-27 10:10:58
Original
2061 people have browsed it

This time I will show you how to deal with the problem of leaving a row above and below the form when inserting a form. for What are the things to note? The following are Let’s take a look at practical cases. I don’t know if you have noticed when making web pages. After inserting

form

, there is often a blank line above and below the form, which makes the layout of the web page ugly. , so today I will teach you how to solve the problem of blank rows when inserting into a form. In fact, the blank lines that appear above and below the form form are not real blank lines, but the form form comes with a default margin
value, but this value is not equal to 0, so we only need to use This problem can be solved by css controlling the margin=0 of the form. The CSS code is as follows:

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to the php Chinese website

Others

related articles! Related reading:

In html, how to use style to add attributes


How to use hyperlinks in html Open a new window and control the window properties


htmlHow to write the input drop-down menu

The above is the detailed content of How to deal with leaving a blank line at the top and bottom of the form when inserting a form. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!