Home > Web Front-end > HTML Tutorial > When the submit button leaves the value blank, it is strangely tilted upward. Can anyone explain it? _html/css_WEB-ITnose

When the submit button leaves the value blank, it is strangely tilted upward. Can anyone explain it? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:23
Original
1132 people have browsed it

The test code is as follows, the browser is IE8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><body>	<input type="text" />	<input type="submit" style="height:20px;" value="" /></body></html>
Copy after login

The position of the text box is correct and is used as a reference. It can be replaced by any element for reference.
As long as the button (whether type=button, type=submit, or type=image) has value="", it will be strangely tilted upward and not at the same height as other horizontal elements. The strange thing is that as long as value has a value (if you don't write value="", the default value will be filled in), it will definitely return to normal and not go up.
Who can give me an explanation? ?


Reply to discussion (solution)

What kind of browser?

Um, the first sentence is?? "The browser is IE8
"

vertical-align:bottom;

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