zoukankan      html  css  js  c++  java
  • css 样式(checkbox开关、css按钮)

    checkbox开关

    css

       .iosCheck {
            /* Blue edition */
        }
        .iosCheck input {
            display: none;
        }
        .iosCheck i {
            display: inline-block;
            cursor: pointer;
            padding-right: 25px;
            transition: all ease 0.2s;
            -webkit-transition: all ease 0.2s;
            border-radius: 25px;
            box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5);
        }
        .iosCheck i:before {
            display: block;
            content: '';
            width: 25px;
            height: 25px;
            border-radius: 25px;
            background: white;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        .iosCheck :checked + i {
            padding-right: 0;
            padding-left: 25px;
            background: #00e970;
            box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 40px #00e079;
            -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 40px #00e079;
        }
        .iosCheck.blue :checked + i {
            background: #6cbff0;
            box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 40px #0093ea;
            -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 40px #0093ea;
        }
        /* General styling */

    html

    <label class="iosCheck">
        <input type="checkbox" name="register_give_switch"/>
        <i></i>
    </label>

    css按钮

    css

     /* clean gray ***  start *******************************************************************************/
    .clean-gray {
      background-color: #eeeeee;
      background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eeeeee), color-stop(100%, #cccccc));
      background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
      background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
      background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
      background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
      background-image: linear-gradient(top, #eeeeee, #cccccc);
      border: 1px solid #ccc;
      border-bottom: 1px solid #bbb;
      border-radius: 3px;
      color: #333;
      font: bold 11px/1 "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
      padding: 1px 0;
      text-align: center;
      text-shadow: 0 1px 0 #eee;
      width: 150px;
    }
    .clean-gray:hover {
        background-color: #dddddd;
        background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dddddd), color-stop(100%, #bbbbbb));
        background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
        background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb);
        background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb);
        background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
        background-image: linear-gradient(top, #dddddd, #bbbbbb);
        border: 1px solid #bbb;
        border-bottom: 1px solid #999;
        cursor: pointer;
        text-shadow: 0 1px 0 #ddd; 
    }
    .clean-gray:active {
        border: 1px solid #aaa;
        border-bottom: 1px solid #888;
        -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
        box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee; 
    }
    .detail-btn {
        margin: 0 auto;
        padding: 0 10px;
        text-decoration: none;
    }
    .detail-btn:hover {
        text-decoration: none;
    }
    /* clean gray ***  end *******************************************************************************/

    html

    <span  class="clean-gray detail-btn sorry">取消</span>
  • 相关阅读:
    RDIFramework.NET开发实例━表约束条件权限的使用-WinForm
    RDIFramework.NET V2.8版本 ━ 开发实例之产品管理(WinForm)
    RDIFramework.NET ━ Web中打印的各种方案参考-欢迎补充
    RDIFramework.NET 框架兼容各种数据库类型事务使用范例参考
    【干货】再上数据分页控件 ━ 更加灵活,更加实用-提供源码
    RDIFramework.NET ━ .NET快速信息化系统开发框架 V2.8 版本━新增岗位管理-Web部分
    RDIFramework.NET ━ .NET快速信息化系统开发框架 V2.8 版本━新增岗位管理-WinForm部分
    RDIFramework.NET ━ .NET快速信息化系统开发框架 V2.8 版本发布
    Javascript中的apply与call详解
    Javascript定义类(class)的三种方法
  • 原文地址:https://www.cnblogs.com/yhdsir/p/5000110.html
Copyright © 2011-2022 走看看