html 按钮位置_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:49
Original
1406 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


想做成:

可实际做成了:



要怎么改?


回复讨论(解决方案)

<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


内容网址
……

去掉


现在变成这样了

那是你有其他的样式,谁知道你的代码怎么写的。
你把这段代码单独写一个文件看是什么样的。

父元素不够长吧

没有浮动吧。

你这只是一部分代码啊,父元素 CSS样式神马的都贴出来啊

Copy after login



  • 内容

  • 网址



<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

没看到你那样,我运行都在一行显示呀!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!