Home >Web Front-end >HTML Tutorial >html button position_html/css_WEB-ITnose

html button position_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:491463browse

<div id="add" style="display:none;" width="660" >内容<input type="text" size="35" id="value1" maxlength = "256">网址<br><input size="45" type="text" id="value2"><input type="submit" value="Submit" onClick="OnAdd()"></div>


I wanted to make it:

But actually I made it:



How to change it?


Reply to discussion (solution)

<div id="add" width="660" >内容<input type="text" size="35" id="value1" maxlength = "256">网址<input size="45" type="text" id="value2"><input type="submit" value="Submit" onClick="OnAdd()"></div>

HTML code

7a00964d41923b8d6da0c932a2ac61ab
contentb7cee5f40c5e8d03a28f0ddad4a44db4Website33e4354ccea8dc3548a0d353bd78fa044dc69d70ac127d38bd46885aa1a98ce8
……

Remove< ;br>

Now it becomes like this

That’s because you have other styles. Who knows how to write your code.
Write this code into a separate file and see what it looks like.

The parent element is not long enough.

There is no float.

This is just a part of the code. You have posted all the CSS styles of the parent element.

 
dc6dce4a544fdca2df29d5ac0ea9906b
ff6d136ddc5fdfeffaf53ff6ee95f185
25edfb22a4f469ecb59f1190150159c6Contentccc2d91c1ba3edc508b9c29c0b89fe25bed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6Website796ff12aea88822adb32b188f66b4610bed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c67aaa5f43732d13c3f9d1f535a52fe8bc bed06894275b65c1ab86501b08a632eb
929d1f5ca49e04fdcb27f9465b944689
16b28748ea4df4d9c2150843fecfba68

<div id="add" width="660" >内容<input type="text" size="35" id="value1" maxlength = "256">网址<input size="45" type="text" id="value2"><input type="submit" value="Submit" onClick="OnAdd()">……

I didn’t see you doing that. When I run it, it displays in one line!

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