获取两个表格以内联显示 [英] Get two forms to display inline
本文介绍了获取两个表格以内联显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这不起作用
<form style ='display:inline;'>
<input type = 'submit'/>
</form>
<form style ='display:inline;'>
<input type = 'submit'/>
</form>
我想要两种提交不同脚本的表单,每个表单都有一个输入按钮以内联显示.
I want two forms that submit to different scripts and each have an input button to display inline.
我想内联设置样式,因为其他人将对主CSS文件进行更永久的更改,这是我做错了什么?
I want to style it inline as someone else will make more permanent changes to the main CSS file what am I doing wrong?
推荐答案
我认为您想要的是将它们并排显示.您可以使用浮点数来代替它,就像这样:
I think what you want is to display them side by side. You can do it using floats instead like so:
<form style ='float: left; padding: 5px;'>
akjfhdkjahj<br />
<input type = 'submit'/>
</form>
<form style ='float: left; padding: 5px;'>
aklfjas<br />
<input type = 'submit'/>
</form>
但是那也不是很理想.最好是将每个<形式><div> s,并在div标签中使用float.
But even that's not ideal. What would be best is to wrap each < form > in < div >s and use float in the div tag instead.
这篇关于获取两个表格以内联显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文