10月20日,北京【人工智能】源创会火热报名中,点击报名收获 AI 训练指南
Watch Star Fork

S / SimpleJavaScript

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
一个轻量,简约,包含丰富模块化前端框架 ,帮您快速构建网站 http://www.we63.com
一键复制 编辑 Web IDE 原始数据 按行查看 历史
badge.html 7.09 KB
mustards 提交于 2018-08-06 08:58 . 新增icon图标示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Simple - 简! </title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"/>
<link rel="icon" href="./favicon.ico" type="image/x-icon"/>
<meta name="keywords" content="layui,ui,ui框架,前端框架,JS组件,Simple">
<meta name="description" content="Simple 是一个基于layui框架,一个轻量,简约,包含丰富模块化前端框架,帮您快速构建网站。">
<link rel="stylesheet" href="./css/s.css">
<link rel="stylesheet" href="./css/extend.css">
<script src="./layui.js"></script>
</head>
<body>
<div class="s-header">
<div class="layui-container flex space-between">
<a class="s-header-a" href="./core.html">
<img src="./img/logo/logo-grey.png" alt="" class="s-header-logo">
</a>
<ul class="s-header-menu">
<li><a href="./">首页</a></li>
<li><a href="./core.html" class="active">基础框架</a></li>
<li><a href="http://www.we63.com/index.php">组件库</a></li>
<li><a href="http://www.we63.com/page.php">页面库</a></li>
</ul>
</div>
</div>
<div class="s-subheader" style="">
<div class="layui-container flex">
<ul class="flex">
<li><a href="color.html">色彩</a></li>
<li><a href="typo.html">排版</a></li>
<li><a href="button.html">按钮</a></li>
<li><a href="badge.html">徽标</a></li>
<li><a href="nav.html">导航</a></li>
<li><a href="breadcrumb.html">面包屑</a></li>
<li><a href="table.html">表格</a></li>
<li><a href="form.html">表单</a></li>
<li><a href="panel.html">面板</a></li>
<li><a href="progress.html">进度条</a></li>
<li><a href="icon.html">图标</a></li>
<li><a href="blank.html">前台空页面</a></li>
<li><a href="admin.html">后台空页面</a></li>
<li><a href="help.html">辅助类</a></li>
</ul>
</div>
</div>
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-md12">
<div class="heading-block">
<h1>徽章·修饰</h1>
<p> 边距和背景色,徽章必然大显神威</p>
</div>
<h1 class="heading-mi">小圆点</h1>
<div class="example">
<span class="layui-badge-dot"></span>
<span class="layui-badge-dot layui-bg-orange"></span>
<span class="layui-badge-dot layui-bg-green"></span>
<span class="layui-badge-dot layui-bg-cyan"></span>
<span class="layui-badge-dot layui-bg-blue"></span>
<span class="layui-badge-dot layui-bg-black"></span>
<span class="layui-badge-dot layui-bg-gray"></span>
<br>
</div>
<h1 class="heading-mi">数字徽标</h1>
<div class="example">
<span class="layui-badge">6</span>
<span class="layui-badge bg-cyan">99</span>
<span class="layui-badge bg-lightblue">61728</span>
<br>
</div>
<h1 class="heading-mi">椭圆体徽章</h1>
<div class="example">
<span class="layui-badge"></span>
<span class="layui-badge layui-bg-orange"></span>
<span class="layui-badge layui-bg-green">绿</span>
<span class="layui-badge layui-bg-cyan"></span>
<span class="layui-badge layui-bg-blue"></span>
<span class="layui-badge layui-bg-black"></span>
<span class="layui-badge layui-bg-gray"></span>
<span class="layui-badge bg-purple"></span>
</div>
<h1 class="heading-mi">边框体徽章</h1>
<div class="example">
<span class="layui-badge-rim bg-deepblack text-white">6</span>
<span class="layui-badge-rim">6</span>
<span class="layui-badge-rim">Hot</span>
</div>
<h1 class="heading-mi">与其它元素的搭配</h1>
<div class="example">
<button class="layui-btn">查看消息<span class="layui-badge layui-bg-gray">1</span></button>
<button class="layui-btn">动态<span class="layui-badge-dot layui-bg-orange"></span></button>
</div>
<h1 class="heading-mi">导航示例</h1>
<div class="example">
<ul class="layui-nav" style="text-align: right;"> <-- Tips:这里有没有发现,设置导航靠右对齐(或居中对齐)其实非常简单 -->
<li class="layui-nav-item">
<a href="">控制台<span class="layui-badge">9</span></a>
</li>
<li class="layui-nav-item">
<a href="">个人中心<span class="layui-badge-dot"></span></a>
</li>
</ul>
</div>
<h1 class="heading-mi">选项卡(所有风格都支持)</h1>
<div class="example">
<div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title">
<li class="layui-this">网站设置</li>
<li>用户管理<span class="layui-badge-dot"></span></li>
<li>最新邮件<span class="layui-badge">99+</span></li>
</ul>
<div class="layui-tab-content"></div>
</div>
</div>
</div>
</div>
</div>
<div class="layui-col-md12">
<div class="s-footer">
<ul>
<li><strong>Simple </strong></li>
<li>Version: v1.0</li>
<li>Last Update:2018-8-3</li>
<li>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1260258189'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D1260258189%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</li>
</ul>
</div>
</div>
<script>
layui.use(['element','form','jquery','upload','laydate'], function(){
var element = layui.element;
var form = layui.form;
var $ = layui.jquery;
var layer = layui.layer;
var upload = layui.upload;
var laydate = layui.laydate;
// 子菜单静态高亮
$('.s-subheader a').each(function(){
filename=location.href.substr(location.href.lastIndexOf('/')+1);
if ($(this).attr("href") == filename ){
$(this).addClass("active");
}
});
//执行实例
var uploadInst = upload.render({
elem: '#btnlogo' //绑定元素
,url: '/upload/' //上传接口
,done: function(res){
//上传完毕回调
}
,error: function(){
//请求异常回调
}
});
});
</script>
</body>
</html>

评论 ( 0 )

你可以在登录后,发表评论

搜索帮助