zoukankan      html  css  js  c++  java
  • label--input

    .form-group {
    margin-bottom: 15px;
    position: relative;
    }
    .control-label{
    float: left;
    15%;
    text-align: right;
    padding-right: 20px;
    padding-top: 7px;
    }
    .form-control{
    float: left;
    50%;
    }
    .form-control input{
    display: block;
    100%;
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    outline: none;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 4px;

    }
    .s-r{
    height: 34px;
    line-height: 34px;
    position: absolute;
    top: 25px;
    right: 0;
    z-index: 2;
    display: block;

    }
    .clearfix:before,.clearfix:after{
    content: "";
    display: table;
    }
    .clearfix:after{
    clear: both;
    }
    .clearfix{
    zoom:1;
    }

    <div class="form-group clearfix">
    <label for="inputPassword3" class="control-label">Password</label>
    <div class="form-control">
    <input type="text" id="inputPassword3" placeholder="Password">
    </div>
    </div>
    <div class="form-group clearfix">
    <label for="inputPassword2" class="control-label">Password</label>
    <div class="form-control">
    <input type="text" id="inputPassword2" placeholder="Password">
    </div>
    </div>
    <div class="form-group clearfix">
    <label for="inputPassword1" class="control-label">Password</label>
    <div class="form-control">
    <input type="text" id="inputPassword1" placeholder="Password">
    </div>
    <span class="s-r">元</span>
    </div>
    <label>
    <input type="checkbox" />
    记住用户名
    </label>

  • 相关阅读:
    MOSS 2013研究系列动态修改WebConfig(上) 欧阳锋
    MOSS 2013研究系列MOSS 2013安装篇 欧阳锋
    GPIO
    [转]vi/vim使用进阶: 在VIM中使用GDB调试 – 使用pyclewn
    建立openwrt虚拟环境
    ebtables基本使用
    LFS小记
    Autoconf & Automake使用小记
    Packet Filter小记
    Web技术整理
  • 原文地址:https://www.cnblogs.com/xiaotaiyang/p/3964918.html
Copyright © 2011-2022 走看看