码迷,mamicode.com
首页 > 其他好文 > 详细

form 元素横向排列

时间:2017-01-30 10:47:07      阅读:329      评论:0      收藏:0      [点我收藏+]

标签:color   邮箱   contact   row   hello   hold   type   end   section   

<section id="contact">
    <div class="lj">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <h2>
                        <span class="glyphicon glyphicon-send"></span>
                        &nbsp;
                        联系dd
                    </h2>
                    <p>
                       hello
                    </p>
                    <address>
                        <p>
                            <span class="glyphicon glyphicon-home"></span>
                            &nbsp;
                            地址:
                        </p>
                        <p>
                            <span class="glyphicon glyphicon-phone-alt"></span>
                            &nbsp;
                            联系电话:
                        </p>
                        <p>
                            <span class="glyphicon glyphicon-envelope"></span>
                            &nbsp;
                            邮箱:
                        </p>
                    </address>
                </div>
                <div class="col-md-6">
                    <form action="#" method="post">
                        <div class="col-md-6">
                            <input type="text" class="form-control" placeholder="您的姓名"/>
                        </div>
                        <div class="col-md-6">
                            <input type="email" class="form-control" placeholder="您的邮箱"/>
                        </div>
                        <div class="col-md-12">
                            <input type="text" class="form-control" placeholder="标题"/>
                        </div>
                        <div class="col-md-12">
                            <textarea class="form-control" placeholder="留言内容" rows="4"></textarea>
                        </div>
                        <div class="col-md-8">
                            <input type="submit" class="form-control" value="提交"/>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>

 

form 元素横向排列

标签:color   邮箱   contact   row   hello   hold   type   end   section   

原文地址:http://www.cnblogs.com/rigid/p/6357913.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!