zoukankan      html  css  js  c++  java
  • 排版-表单

    单独的表单控件会被自动赋予一些全局样式。所有设置了 .form-control 类的 <input><textarea> 和 <select> 元素都将被默认设置宽度属性为  100%;。 将 label 元素和前面提到的控件包裹在 .form-group中可以获得最好的排列。

      <div class="container">       
            <div class="row">   
                
                    <form action="">
                        <div class="from-group">
                            <label for="" class="from-control">用户名:</label>
                            <input type="text" class="form-control">
                        </div>
                           
                        <div div class="from-group">
                           <label for="" class="from-control">密码:</label>
                          <input type="password" name="" id="" class="form-control">           
                        </div>
                          
                    </form>
                     
                
            </div> 
        </div>

      内联表单样式

      

    <div class="container">       
            <div class="row">   
                <form action="" class="form-inline">
                    <div class="form-group">
                        <label for="">用户名:</label>
                        <input type="text" class="form-control">
                    </div>
                    <div class="form-group">
                            <label for="" >密码:</label>
                            <input type="password" class="form-control">
                        </div>
                </form>
                 
            </div> 
        </div>
  • 相关阅读:
    Orchard CMS中如何打包不带源码的模块
    牛X的CSS3
    Docker指令
    Spring Boot 应用 发布到Docker
    Haproxy全透明代理
    TCP/IP协议理解
    ubuntu tomcat 部署java web
    UDP"打洞"原理
    java多线程-线程通信
    window环境下杀死tomcat
  • 原文地址:https://www.cnblogs.com/xiaowie/p/10688922.html
Copyright © 2011-2022 走看看