2017-04-24 46 views
0

我想从我的当前窗体下方的重力形式中提交按钮。将重力形式的提交按钮放在表单中的中心

例子:

enter image description here

我有我的重力窗体上two-column布局。该按钮当前在右列下浮动。

任何想法?

+0

请分享您的代码 – athi

+0

@athimohan所有重力形式默认代码。 – Chris

+0

我认为你可以使用保证金:0自动为按钮在中心 – athi

回答

1

试试这个:http://jsfiddle.net/7Laf8/

你基本上把你的按钮,在一个div:

<div class="wrapper"> 
    <button class="button">Button</button> 
</div> 
With the following styles: 

.wrapper { 
    text-align: center; 
} 

.button { 
    position: absolute; 
    top: 50%;