labels_tips.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <th:block th:include="include :: header('标签 & 提示')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="wrapper wrapper-content animated fadeIn">
  8. <div class="row">
  9. <div class="col-sm-6">
  10. <div class="ibox float-e-margins">
  11. <div class="ibox-title">
  12. <h5>徽章 (Badges)</h5>
  13. <div class="ibox-tools">
  14. <a class="collapse-link">
  15. <i class="fa fa-chevron-up"></i>
  16. </a>
  17. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  18. <i class="fa fa-wrench"></i>
  19. </a>
  20. <ul class="dropdown-menu dropdown-user">
  21. <li><a href="#">选项1</a>
  22. </li>
  23. <li><a href="#">选项2</a>
  24. </li>
  25. </ul>
  26. <a class="close-link">
  27. <i class="fa fa-times"></i>
  28. </a>
  29. </div>
  30. </div>
  31. <div class="ibox-content">
  32. <p>
  33. 要添加徽章,只需要在元素上添加<code>.badge</code>即可,改变徽章的颜色可使用如下class,如<code>.badge-primary</code>。
  34. </p>
  35. <p><span class="badge">空</span>
  36. </p>
  37. <p><span class="badge badge-primary">badge-primary</span>
  38. </p>
  39. <p><span class="badge badge-info">badge-info</span>
  40. </p>
  41. <p><span class="badge badge-success">badge-success</span>
  42. </p>
  43. <p><span class="badge badge-warning">badge-warning</span>
  44. </p>
  45. <p><span class="badge badge-danger">badge-danger</span>
  46. </p>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="col-sm-6">
  51. <div class="ibox float-e-margins">
  52. <div class="ibox-title">
  53. <h5>标签 (Labels)</h5>
  54. <div class="ibox-tools">
  55. <a class="collapse-link">
  56. <i class="fa fa-chevron-up"></i>
  57. </a>
  58. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  59. <i class="fa fa-wrench"></i>
  60. </a>
  61. <ul class="dropdown-menu dropdown-user">
  62. <li><a href="#">选项1</a>
  63. </li>
  64. <li><a href="#">选项2</a>
  65. </li>
  66. </ul>
  67. <a class="close-link">
  68. <i class="fa fa-times"></i>
  69. </a>
  70. </div>
  71. </div>
  72. <div class="ibox-content">
  73. <p>
  74. 要添加徽章,只需要在元素上添加class<code>.label</code>即可,如果需要修改颜色,添加如下class,如<code>.label-primary</code>
  75. </p>
  76. <p><span class="label">空</span>
  77. </p>
  78. <p><span class="label label-primary">label-primary</span>
  79. </p>
  80. <p><span class="label label-info">label-info</span>
  81. </p>
  82. <p><span class="label label-success">label-success</span>
  83. </p>
  84. <p><span class="label label-warning">label-warning</span>
  85. </p>
  86. <p><span class="label label-danger">label-danger</span>
  87. </p>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="row">
  93. <div class="col-sm-6">
  94. <div class="ibox float-e-margins">
  95. <div class="ibox-title">
  96. <h5>通知样式</h5>
  97. <div class="ibox-tools">
  98. <a class="collapse-link">
  99. <i class="fa fa-chevron-up"></i>
  100. </a>
  101. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  102. <i class="fa fa-wrench"></i>
  103. </a>
  104. <ul class="dropdown-menu dropdown-user">
  105. <li><a href="#">选项1</a>
  106. </li>
  107. <li><a href="#">选项2</a>
  108. </li>
  109. </ul>
  110. <a class="close-link">
  111. <i class="fa fa-times"></i>
  112. </a>
  113. </div>
  114. </div>
  115. <div class="ibox-content">
  116. <div class="alert alert-success">
  117. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  118. </div>
  119. <div class="alert alert-info">
  120. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  121. </div>
  122. <div class="alert alert-warning">
  123. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  124. </div>
  125. <div class="alert alert-danger">
  126. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="col-sm-6">
  132. <div class="ibox float-e-margins">
  133. <div class="ibox-title">
  134. <h5>带关闭按钮的通知样式</h5>
  135. <div class="ibox-tools">
  136. <a class="collapse-link">
  137. <i class="fa fa-chevron-up"></i>
  138. </a>
  139. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  140. <i class="fa fa-wrench"></i>
  141. </a>
  142. <ul class="dropdown-menu dropdown-user">
  143. <li><a href="#">选项1</a>
  144. </li>
  145. <li><a href="#">选项2</a>
  146. </li>
  147. </ul>
  148. <a class="close-link">
  149. <i class="fa fa-times"></i>
  150. </a>
  151. </div>
  152. </div>
  153. <div class="ibox-content">
  154. <div class="alert alert-success alert-dismissable">
  155. <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
  156. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  157. </div>
  158. <div class="alert alert-info alert-dismissable">
  159. <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
  160. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  161. </div>
  162. <div class="alert alert-warning alert-dismissable">
  163. <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
  164. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  165. </div>
  166. <div class="alert alert-danger alert-dismissable">
  167. <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
  168. RuoYi是一个很棒的后台UI框架 <a class="alert-link" href="#">了解更多</a>.
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="row">
  175. <div class="col-sm-12">
  176. <div class="ibox float-e-margins">
  177. <div class="ibox-title">
  178. <h5>工具提示</h5>
  179. <div class="ibox-tools">
  180. <a class="collapse-link">
  181. <i class="fa fa-chevron-up"></i>
  182. </a>
  183. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  184. <i class="fa fa-wrench"></i>
  185. </a>
  186. <ul class="dropdown-menu dropdown-user">
  187. <li><a href="#">选项1</a>
  188. </li>
  189. <li><a href="#">选项2</a>
  190. </li>
  191. </ul>
  192. <a class="close-link">
  193. <i class="fa fa-times"></i>
  194. </a>
  195. </div>
  196. </div>
  197. <div class="text-center">
  198. <h4>工具提示示例 <small>深色背景</small></h4>
  199. <div>
  200. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="这里是提示内容">左侧提示</button>
  201. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="这里是提示内容">顶部提示</button>
  202. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="这里是提示内容">底部提示</button>
  203. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="这里是提示内容">右侧提示</button>
  204. </div>
  205. <br>
  206. <h4>工具提示 - 单击提示</h4>
  207. <div class="text-center" >
  208. <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="auto left" data-content="气泡提示">
  209. 气泡提示左
  210. </button>
  211. <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="auto top" data-content="气泡提示">
  212. 气泡提示顶部
  213. </button>
  214. <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="auto bottom" data-content="气泡提示">
  215. 气泡提示底部
  216. </button>
  217. <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="auto right" data-content="气泡提示">
  218. 气泡提示右
  219. </button>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <th:block th:include="include :: footer" />
  227. <script type="text/javascript">
  228. $("[data-toggle='tooltip']").tooltip();
  229. $("[data-toggle=popover]").popover();
  230. </script>
  231. </body>
  232. </html>