html - 如何使提交按钮居中

标签 html css

使用 css 和 html 制作联系表格。这就是我想要做的。

margin-left:auto;margin-right:auto

使我的提交按钮居中。这是我的代码:

http://jsfiddle.net/T7UtM/

最佳答案

在您的情况下,这将使按钮居中:

.ss-item.ss-navigate{
    width:200px;
    margin:auto;
}

fiddle :http://jsfiddle.net/T7UtM/2/

但是尝试修改您的标记,它在太多层面上是错误的。

关于html - 如何使提交按钮居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24216234/

相关文章:

css - IE 无法处理带有 png 的可拖动 div?

javascript - 是否可以在 768px 分辨率以下添加 <a> 元素?

html - 我将如何在 SVG 中使用内联 HTML 元素?

html - PrimeNG p-日历 : change the background-color of the dates

javascript - 为什么这个 bootstrap carousel slider 不滑动?

javascript - 通过脚本文件添加 jquery 脚本

html - 如何在 HTML/CSS 中设置百分比高度值

html - anchor 元素正在将 <li> 元素添加到其子元素 <ul>

php - 创建一个登录名,并使用 php 将用户的输入存储在文本文件中

javascript - 使用 javascript 根据计算值显示 'Ratings' 像星星