0 Star 0 Fork 135

Fantacy/Light Year Admin Using Iframe v4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lyear_forms_checkbox.html 7.47 KB
一键复制 编辑 原始数据 按行查看 历史
笔下光年 提交于 2020-05-13 20:44 . 新增演示文件
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>复选框 - 光年(Light Year Admin V4)后台管理系统模板</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V4是一个后台管理系统的HTML模板,基于Bootstrap v4.4.1。">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid p-t-15">
<div class="row">
<div class="col-lg-12">
<div class="card">
<header class="card-header"><div class="card-title">基本样式</div></header>
<div class="card-body">
<p>在input的父类元素加上 <code>.custom-checkbox</code> 类。</p>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck1">
<label class="custom-control-label" for="customCheck1">默认复选框</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck2" checked>
<label class="custom-control-label" for="customCheck2">已选中的复选框</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck3" disabled>
<label class="custom-control-label" for="customCheck3">禁用复选框</label>
</div>
<p class="mt-3">对于内联复选框 <code>.custom-control-inline</code></p>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" id="customCheckboxInline1" name="customCheckboxInline1" class="custom-control-input">
<label class="custom-control-label" for="customCheckboxInline1">篮球</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" id="customCheckboxInline2" name="customCheckboxInline2" class="custom-control-input">
<label class="custom-control-label" for="customCheckboxInline2">足球</label>
</div>
<p class="mt-3">通过JavaScript(当没有可用的HTML属性来指定它)手机设置时,自定义勾选控件还可以使用 <code>:indeterminate</code> 伪类(实现一种模糊的提示使用的样式)。</p>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck4">
<label class="custom-control-label" for="customCheck4">羽毛球</label>
</div>
<p class="mt-3">如果你正使用 jQuery,可以用下面方法:</p>
<pre>$('.your-checkbox').prop('indeterminate', true)</pre>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card">
<header class="card-header"><div class="card-title">颜色</div></header>
<div class="card-body">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheckPrimary" checked>
<label class="custom-control-label" for="customCheckPrimary">默认复选框</label>
</div>
<div class="custom-control custom-checkbox custom-secondary">
<input type="checkbox" class="custom-control-input" id="customCheckSecondary" checked>
<label class="custom-control-label" for="customCheckSecondary">次要颜色 <code>.custom-secondary</code></label>
</div>
<div class="custom-control custom-checkbox custom-success">
<input type="checkbox" class="custom-control-input" id="customCheckSuccess" checked>
<label class="custom-control-label" for="customCheckSuccess">成功 <code>.custom-success</code></label>
</div>
<div class="custom-control custom-checkbox custom-info">
<input type="checkbox" class="custom-control-input" id="customCheckInfo" checked>
<label class="custom-control-label" for="customCheckInfo">信息 <code>.custom-info</code></label>
</div>
<div class="custom-control custom-checkbox custom-warning">
<input type="checkbox" class="custom-control-input" id="customCheckWarning" checked>
<label class="custom-control-label" for="customCheckWarning">警告 <code>.custom-warning</code></label>
</div>
<div class="custom-control custom-checkbox custom-danger">
<input type="checkbox" class="custom-control-input" id="customCheckDanger" checked>
<label class="custom-control-label" for="customCheckDanger">危险 <code>.custom-danger</code></label>
</div>
<div class="custom-control custom-checkbox custom-purple">
<input type="checkbox" class="custom-control-input" id="customCheckPurple" checked>
<label class="custom-control-label" for="customCheckPurple">紫色 <code>.custom-purple</code></label>
</div>
<div class="custom-control custom-checkbox custom-pink">
<input type="checkbox" class="custom-control-input" id="customCheckPink" checked>
<label class="custom-control-label" for="customCheckPink">粉红色 <code>.custom-pink</code></label>
</div>
<div class="custom-control custom-checkbox custom-brown">
<input type="checkbox" class="custom-control-input" id="customCheckBrown" checked>
<label class="custom-control-label" for="customCheckBrown">棕色 <code>.custom-brown</code></label>
</div>
<div class="custom-control custom-checkbox custom-cyan">
<input type="checkbox" class="custom-control-input" id="customCheckCyan" checked>
<label class="custom-control-label" for="customCheckCyan">青色 <code>.custom-cyan</code></label>
</div>
<div class="custom-control custom-checkbox custom-yellow">
<input type="checkbox" class="custom-control-input" id="customCheckYellow" checked>
<label class="custom-control-label" for="customCheckYellow">黄色 <code>.custom-yellow</code></label>
</div>
<div class="custom-control custom-checkbox custom-gray">
<input type="checkbox" class="custom-control-input" id="customCheckGray" checked>
<label class="custom-control-label" for="customCheckGray">灰色 <code>.custom-gray</code></label>
</div>
<div class="custom-control custom-checkbox custom-dark">
<input type="checkbox" class="custom-control-input" id="customCheckDark" checked>
<label class="custom-control-label" for="customCheckDark">黑色 <code>.custom-dark</code></label>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
<script type="text/javascript">
$('#customCheck4').prop('indeterminate', true);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/C_Dream/Light-Year-Admin-Using-Iframe-v4.git
git@gitee.com:C_Dream/Light-Year-Admin-Using-Iframe-v4.git
C_Dream
Light-Year-Admin-Using-Iframe-v4
Light Year Admin Using Iframe v4
master

搜索帮助