Home >Web Front-end >HTML Tutorial >html button position_html/css_WEB-ITnose
<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>
<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.
<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()">……