index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <title>徽章</title>
  2. <div class="layui-card layadmin-header">
  3. <div class="layui-breadcrumb" lay-filter="breadcrumb">
  4. <a lay-href="">主页</a>
  5. <a><cite>组件</cite></a>
  6. <a><cite>徽章</cite></a>
  7. </div>
  8. </div>
  9. <style>
  10. /* 这段样式只是用于演示 */
  11. </style>
  12. <div class="layui-fluid">
  13. <div class="layui-row layui-col-space15">
  14. <div class="layui-col-md12">
  15. <div class="layui-card">
  16. <div class="layui-card-header">小徽章大家族</div>
  17. <div class="layui-card-body">
  18. <br>小圆点:
  19. <span class="layui-badge-dot"></span>
  20. <span class="layui-badge-dot layui-bg-orange"></span>
  21. <span class="layui-badge-dot layui-bg-green"></span>
  22. <span class="layui-badge-dot layui-bg-cyan"></span>
  23. <span class="layui-badge-dot layui-bg-blue"></span>
  24. <span class="layui-badge-dot layui-bg-black"></span>
  25. <span class="layui-badge-dot layui-bg-gray"></span>
  26. <br><br>常规弧形徽章:
  27. <span class="layui-badge">6</span>
  28. <span class="layui-badge">99</span>
  29. <span class="layui-badge">61728</span>
  30. <span class="layui-badge">赤</span>
  31. <span class="layui-badge layui-bg-orange">橙</span>
  32. <span class="layui-badge layui-bg-green">绿</span>
  33. <span class="layui-badge layui-bg-cyan">青</span>
  34. <span class="layui-badge layui-bg-blue">蓝</span>
  35. <span class="layui-badge layui-bg-black">黑</span>
  36. <span class="layui-badge layui-bg-gray">灰</span>
  37. <br><br>边框徽章:
  38. <span class="layui-badge-rim">6</span>
  39. <span class="layui-badge-rim">Hot</span>
  40. <br><br>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="layui-col-md12">
  45. <div class="layui-card">
  46. <div class="layui-card-header">与其它元素的搭配</div>
  47. <div class="layui-card-body">
  48. <br>
  49. <button class="layui-btn">查看消息<span class="layui-badge layui-bg-gray">1</span></button>
  50. <button class="layui-btn">动态<span class="layui-badge-dot layui-bg-orange"></span></button>
  51. <br><br>
  52. <ul class="layui-nav style=" text-align:="" right;"=""> &lt;-- 小Tips:这里有没有发现,设置导航靠右对齐(或居中对齐)其实非常简单 --&gt;
  53. <li class="layui-nav-item">
  54. <a href="">控制台<span class="layui-badge">9</span></a>
  55. </li>
  56. <li class="layui-nav-item">
  57. <a href="">个人中心<span class="layui-badge-dot"></span></a>
  58. </li>
  59. </ul>
  60. <br>
  61. <div class="layui-tab layui-tab-brief">
  62. <ul class="layui-tab-title">
  63. <li class="layui-this">网站设置</li>
  64. <li>用户管理<span class="layui-badge-dot"></span></li>
  65. <li>最新邮件<span class="layui-badge">99+</span></li>
  66. </ul>
  67. <div class="layui-tab-content"></div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <script>
  75. layui.use(['admin'], function(){
  76. var $ = layui.$
  77. ,admin = layui.admin
  78. ,element = layui.element
  79. ,router = layui.router();
  80. element.render();
  81. });
  82. </script>