After inserting a form, there is often a blank line above and below the form, which makes the layout of the web page ugly. You only need to use css to control the margin=0 of the form to solve this problem.
I don’t know if you have noticed when making a web page that after inserting a form, there is often a blank line above and below the form. This makes the layout of the web page ugly, so today I will teach you how to solve the problem of blank lines when inserting a form. Methods.
In fact, the empty lines that appear above and below the form form are not really empty 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 css to control the form Margin=0 can solve this problem. The CSS code is as follows:
The code is as follows:
form{margin: 0px;}
More insert form top and bottom Please pay attention to the PHP Chinese website for related articles on the solution that will leave one line empty!