小编use*_*047的帖子

如何在bootstrap中div的中间水平对齐表单

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <form role="form">
                <div class="form-group">
                     <label for="exampleInputEmail1">Email address</label><input type="email" class="form-control" id="exampleInputEmail1" />
                </div>
                <div class="form-group">
                     <label for="exampleInputPassword1">Password</label><input type="password" class="form-control" id="exampleInputPassword1" />
                </div>
                <div class="form-group">
                     <label for="exampleInputFile">File input</label><input type="file" id="exampleInputFile" />
                    <p class="help-block">
                        Example block-level help text here.
                    </p>
                </div>
                <div class="checkbox">
                     <label><input type="checkbox" /> Check me out</label>
                </div> <button type="submit" class="btn btn-default">Submit</button>
            </form>
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

我正在使用bootstrap.

我想在这个中间对齐表单div col-md-12 column.

对此有何解决方案?

html css twitter-bootstrap

5
推荐指数
2
解决办法
5万
查看次数

使用href提交表单

我有一张表格

<form method="post" id="ff">

<input type="name" id="aa" />

<input type="name" id="bb" />

<a href="http://www.example.php "> Submit </a>

</form>
Run Code Online (Sandbox Code Playgroud)

是否可以使用href发布?我需要将数据发布到href url.Is有可能吗?有人可以帮忙吗?

我不想使用正常 action=

html javascript php forms

-3
推荐指数
1
解决办法
2万
查看次数

标签 统计

html ×2

css ×1

forms ×1

javascript ×1

php ×1

twitter-bootstrap ×1