代码备份 | 博客侧边栏公告(支持HTML代码)(支持JS代码)

前端开发   发布日期:2025年06月14日   浏览次数:122

 

  1. 博客侧边栏公告(支持HTML代码)(支持JS代码)
  2. <div id='btnList'>
  3. <a class="ivu-btn ivu-btn-primary" href="https://cn.vuejs.org/v2/api/" target="_blank">Vue</a>
  4. <a class="ivu-btn ivu-btn-primary" href="https://www.iviewui.com/" target="_blank">iView</a>
  5. <a class="ivu-btn ivu-btn-primary" href="http://www.dicts.cn/" target="_blank">dicts</a>
  6. <a class="ivu-btn ivu-btn-primary" href="https://gitee.com/" target="_blank">gitee</a>
  7. <a class="ivu-btn ivu-btn-primary" href="https://tw.voicetube.com/" target="_blank">voicetube</a>
  8. <a class="ivu-btn ivu-btn-primary" href="https://www.buzzfeed.com/" target="_blank">buzzfeed</a>
  9. <a class="ivu-btn ivu-btn-primary" href="http://www.ozdic.com/" target="_blank">ozdic词组</a>
  10. <a class="ivu-btn ivu-btn-primary" href="http://electronjs.org/docs" target="_blank">electronjs</a>
  11. <a class="ivu-btn ivu-btn-primary" href="http://huziketang.mangojuice.top/books/react/lesson28" target="_blank">react</a>
  12. <a class="ivu-btn ivu-btn-primary" href="https://react.docschina.org/docs/hello-world.html" target="_blank">react2</a>
  13. <a class="ivu-btn ivu-btn-primary" href="https://juejin.im/book/5bc844166fb9a05cd676ebca" target="_blank">掘金</a>
  14. <a class="ivu-btn ivu-btn-primary" href="https://ant.design/docs/react/introduce-cn" target="_blank">AntDesign</a>
  15. <a class="ivu-btn ivu-btn-primary" href="https://github.com/yezihaohao/react-admin" target="_blank">reactAdmin</a>
  16. <a class="ivu-btn ivu-btn-primary" href="https://www.processon.com/" target="_blank">processOn</a>
  17. <a class="ivu-btn ivu-btn-primary" href="https://www.draw.io/" target="_blank">draw.io</a>
  18. <a class="ivu-btn ivu-btn-primary" href="http://www.demigods.top/" target="_blank">demigods</a>
  19. <a class="ivu-btn ivu-btn-primary" href="https://medium.com/" target="_blank">medium</a>
  20. <div style="height:10px"></div>
  21. <img width='100%' src='http://images.cnblogs.com/wdphp_com/pengchenggang/110921/o_ask.jpg' />
  22. </div>
  23. <script>
  24. $(document).ready(function(){
  25. // $("#subtitle").html("<button type='button' class='ivu-btn ivu-btn-default'><span>Default</span></button>");
  26. $("#content > p:eq(0)").before(document.getElementById('btnList'));
  27. });
  28. </script>

 

  1. 页脚Html代码
  2. <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui-v2.5.4/css/layui.css" />
  3. <script src="https://www.layuicdn.com/layui-v2.5.4/layui.js"></script>
  4. <script type="text/javascript">
  5. layui.use(['laydate', 'laypage', 'layer', 'table', 'carousel', 'upload', 'element'], function() {
  6. var laydate = layui.laydate //日期
  7. ,laypage = layui.laypage //分页
  8. ,layer = layui.layer //弹层
  9. ,table = layui.table //表格
  10. ,carousel = layui.carousel //轮播
  11. ,upload = layui.upload //上传
  12. ,element = layui.element; //元素操作 等等...
  13. /*layer弹出一个示例*/
  14. layer.msg('waiting for VUE3.0');
  15. });
  16. </script>
  17. <style>
  18. body {
  19. margin-left: 20px;
  20. margin-right: 20px;
  21. margin-top: ;
  22. margin-bottom: 10px;
  23. padding: 30px;
  24. padding-bottom: 10px;
  25. padding-top: ;
  26. }
  27. #wdphp_post_body .toc {
  28. position: fixed;
  29. right: 100px;
  30. top: 150px;
  31. }
  32. .ivu-btn {
  33. display: inline-block;
  34. margin-bottom: 5px;
  35. font-weight: ;
  36. text-align: center;
  37. -ms-touch-action: manipulation;
  38. touch-action: manipulation;
  39. cursor: pointer;
  40. background-image: none;
  41. border: 1px solid transparent;
  42. white-space: nowrap;
  43. -webkit-user-select: none;
  44. -moz-user-select: none;
  45. -ms-user-select: none;
  46. user-select: none;
  47. padding: 5px 15px 6px;
  48. font-size: 12px;
  49. border-radius: 4px;
  50. transition: color .2s linear,background-color .2s linear,border .2s linear,box-shadow .2s linear !important;
  51. color: #515a6e;
  52. background-color: #fff;
  53. border-color: #dcdee2;
  54. }
  55. .ivu-btn-primary {
  56. color: #2d8cf0;
  57. background: ;
  58. text-decoration: none;
  59. outline: ;
  60. cursor: pointer;
  61. transition: color .2s ease;
  62. color: #fff;
  63. background-color: #2d8cf0;
  64. border-color: #2d8cf0;
  65. }
  66. .ivu-btn-primary.active, .ivu-btn-primary:active {
  67. color: #f2f2f2;
  68. background-color: #2b85e4;
  69. border-color: #2b85e4;
  70. }
  71. .ivu-btn-primary:hover {
  72. text-decoration: none;
  73. color: #fff;
  74. background-color: #57a3f3;
  75. border-color: #57a3f3;
  76. }
  77. </style>

 

以上就是代码备份 | 博客侧边栏公告(支持HTML代码)(支持JS代码)的详细内容,更多关于代码备份 | 博客侧边栏公告(支持HTML代码)(支持JS代码)的资料请关注九品源码其它相关文章!