最新公告
  • 欢迎您光临仿站吧 帝国CMS模板一站式建站供应平台 . 欢迎加入VIP
  • 帝国CMS灵动标签使用教程&案例

    正文概述 仿站吧   2023-10-16 04:03:54  

    相关教程

    教程地址:帝国CMS万能标签使用教程

    1)生成灵动标签

    位置:后台>模板>自动生成标签

    帝国CMS灵动标签使用教程&案例 第1张

    2)插入生成的灵动标签

    将生成的标签插入到想要的位置;

    3)修改标签

    修改标签中的调用信息。

    更新相关页面即可。


    举例:

    效果演示

    帝国CMS灵动标签使用教程&案例 第2张

    演示代码

    1. <!doctype html>
    2. <html lang="en">
    3. <head>
    4.     <meta charset="UTF-8">
    5.     <title>Document</title>
    6.     <style>
    7.         *{box-sizing:border-box;margin:0;padding:0;outline:0;border:0;list-style:none;}
    8.         .msg{display:flex;margin:0 auto;width:1200px;box-shadow:0 8px 16px rgba(0,0,0,.15);flex-wrap:wrap;}
    9.         .msg .item{position:relative;margin-top:10px;padding:24px;width:100%;max-width:33.333333%;min-height:1px;background:#eee;flex:0 0 33.333333%;}
    10.         .msg .item .info{position:relative;}
    11.         .msg .item .info::after{clear:both;display:block;content:"";}
    12.         .msg .item .info h3{float:left;display:inline-block;margin-top:0;margin-bottom:0;padding:8px;border-radius:4px;background:#2be;color:#fff;vertical-align:baseline;text-align:center;white-space:nowrap;font-weight:400;font-size:75%;line-height:1;}
    13.         .msg .item .info h3::before{position:absolute;top:-15px;left:-12px;display:inline-block;margin-bottom:8px;width:25px;height:25px;border-radius:50%;background-color:#fff;color:#2be;content:'+';text-align:center;font-weight:500;font-size:20px;line-height:1.2;}
    14.         .msg .item .info a{float:right;margin-top:4px;background-color:transparent;text-decoration:none;font-size:14px;}
    15.         .msg .item ul{display:flex;margin-top:8px;margin-bottom:0;padding-left:0;-ms-flex-direction:column;flex-direction:column;}
    16.         .msg .item ul li{padding:16px;width:100%;border:none;border-bottom:1px solid transparent;border-top-right-radius:4px;border-top-left-radius:4px;background-color:transparent;color:#495057;text-align:inherit;transition:all .5s;}
    17.         .msg .item ul li:hover{background:#ccc;}
    18.         .msg .item ul li h4{display:inline-block;overflow:hidden;margin-bottom:4px;padding-right:8px;width:80%;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:16px;line-height:1.2;}
    19.         .msg .item ul li h4 a{background-color:transparent;color:#333;}
    20.         .msg .item ul li h4 a:hover{color:#2be;}
    21.         .msg .item ul li small{float:right;width:20%;white-space:nowrap;font-weight:400;font-size:80%;}
    22.         .msg .item ul li p{overflow:hidden;margin-top:0;margin-bottom:0;height:40px;color:#777;font-size:14px;}
    23.     </style>
    24. </head>
    25. <body>
    26. <div class="msg">
    27.     <div class="item">
    28.         <div class="info">
    29.             <h3>快速建站</h3>
    30.             <a href="articlelist.html" title="快速建站">查看更多&gt;&gt;</a>
    31.         </div>
    32.         <ul>
    33.             <li>
    34.                 <h4><a href="articledetail.html" title="仿站吧自助建站真的开源?" target="_blank">仿站吧自助建站真的开源?</a></h4>
    35.                 <small>2019/01/12</small>
    36.                 <p>仿站吧建站自2019年起推出了全新理念的自助建站,仿站吧企业建站系统、仿站吧商业模板……</p>
    37.             </li>
    38.             <li>
    39.                 <h4><a href="articledetail.html" title="仿站吧自助建站真的开源?" target="_blank">仿站吧自助建站真的开源?</a></h4>
    40.                 <small>2019/01/12</small>
    41.                 <p>仿站吧建站自2019年起推出了全新理念的自助建站,仿站吧企业建站系统、仿站吧商业模板……</p>
    42.             </li>
    43.         </ul>
    44.     </div>
    45. </div>
    46. </body>
    47. </html>
    仿站吧,一个优质的源码资源平台!
    仿站吧 » 帝国CMS灵动标签使用教程&案例