How to solve the problem of a blank row at the top and bottom after inserting a form

php中世界最好的语言
Release: 2018-01-31 09:52:04
Original
2443 people have browsed it

This time I will show you how to solve the problem of a blank line at the top and bottom after inserting a form, and how to solve the problem of a blank line at the top and bottom after inserting a form.What are the precautions?. Here is a practical case. Let’s take a look. take a look.

I don’t know if you have noticed when making web pages. After insertingform, there is often a blank line above and below the form. In this way, the layout of the web page will be It’s ugly, so today I’m going to teach you how to solve the problem of blank lines 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 defaultmarginvalue, 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:

form{margin: 0px;}
Copy after login

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

Related reading:

How to use H5’s FileReader distribution to read files and an introduction to its methods

How to use H5 to add prohibited scaling Function

How to implement page scaling on the mobile phone in h5

How to read the file field FileReader in H5 in segments Get the file and upload it to the server

The above is the detailed content of How to solve the problem of a blank row at the top and bottom after 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
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!