做两个HTML按钮肩并肩地走 [英] Making two HTML buttons go side by side

查看:141
本文介绍了做两个HTML按钮肩并肩地走的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我不是很熟悉HTML,或它如何与CSS一起来到。我一直在寻找各地如何使两个HTML按钮肩并肩地走。这是我目前使用的code。

Okay, I'm not very familiar with HTML, or how it comes together with CSS. I have been looking all over on how to make two HTML buttons go side by side. Here is the code I'm currently using.

<FORM METHOD="LINK" ACTION="LINK TO WEBSITE" target="_blank">
  <input type="submit" value="Forum Home Page">
</FORM>
<FORM METHOD="LINK" ACTION="LINK TO A DIFFERENT WEBSITE" target="_blank">
  <input type="submit" value="Skill Guides">
</FORM>

如果我把它们之后对方或使前方对准他们不管。我似乎无法让他们去彼此相邻。我希望有一个人可以很容易地在一个详细的方式,帮助我。

No matter if I put them right after each other or put an alignment infront of them. I can't seem to get them to go next to each other. I hope there is someone that can easily and in a detailed way, help me out.

推荐答案

如果我理解正确,你可以附上下面的CSS:

If I understand you correctly, you can just attach the following CSS:

form {
    display: inline;
}

如下所示: http://jsfiddle.net/zcz3j/

这篇关于做两个HTML按钮肩并肩地走的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆