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

html button position_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:49
Original
1466 people have browsed it

<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>
Copy after login


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>
Copy after login

HTML code


contentWebsite
……

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.

Copy after login



  • Content

  • Website



<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()">……
Copy after login

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

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template