经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » JS/JS库/框架 » Bootstrap » 查看文章
Bootstrap 按钮样式与使用代码详解
来源:jb51  时间:2018/12/10 9:19:48  对本文有异议

1. 可用于<a>, <button>, 或 <input> 元素的按钮样式

按钮样式使用:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>My Test bootstrap</title>
  6. <link rel="stylesheet" href="./css/bootstrap.min.css" rel="external nofollow" >
  7. <script type="text/javascript" src="./js/bootstrap.min.js"></script>
  8. </head>
  9. <body>
  10. <button type="button" class="btn btn-primary">原始按钮</button>
  11. <button type="button" class="btn btn-success">成功按钮</button>
  12. <button type="button" class="btn btn-info">信息按钮</button>
  13. <button type="button" class="btn btn-warning">警告按钮</button>
  14. <button type="button" class="btn btn-danger">危险按钮</button>
  15. </body>
  16. </html>

总结

以上所述是小编给大家介绍的Bootstrap 按钮样式与使用代码详解,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号