溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

AmazeUI如何實現評論列表

發布時間:2021-03-20 11:25:50 來源:億速云 閱讀:222 作者:小新 欄目:web開發

這篇文章主要介紹AmazeUI如何實現評論列表,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!

AmazeUI 評論列表的實現示例:

<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>評論列表</title>
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
<meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
<meta name="msapplication-TileColor" content="#0e90d2">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
</head>
<body style="margin: 10px;">
<!--基本結構-->
<article class="am-comment"> <!-- 評論容器 -->
 <a href="">
  <img class="am-comment-avatar" alt="" src="img/100.jpg" /> <!-- 評論者頭像 -->
 </a>
 <div class="am-comment-main"> <!-- 評論內容容器 -->
  <header class="am-comment-hd">
   <!--<h4 class="am-comment-title">評論標題</h4>-->
   <div class="am-comment-meta"> <!-- 評論元數據 -->
    <a href="#link-to-user" class="am-comment-author">chaoyi</a> <!-- 評論者 -->
    評論于 <time datetime="">2016-02-17</time>
   </div>
  </header>
  <div class="am-comment-bd">閱誰問君誦,水落清香浮。</div> <!-- 評論內容 -->
 </div>
</article><br>
<!--單條評論-->
<article class="am-comment">
 <a href="#link-to-user-home">
  <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
 </a>
 <div class="am-comment-main">
  <header class="am-comment-hd">
   <!--<h4 class="am-comment-title">評論標題</h4>-->
   <div class="am-comment-meta">
    <a href="#link-to-user" class="am-comment-author">chaoyi</a>
    評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
   </div>
  </header>
  <div class="am-comment-bd">
   閱誰問君誦,水落清香浮。
  </div>
 </div>
</article>
<!--評論列表-->
<ul class="am-comments-list am-comments-list-flip">
 <li class="am-comment">
  <a href="#link-to-user-home">
   <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
  </a>
  <div class="am-comment-main">
   <header class="am-comment-hd">
    <!--<h4 class="am-comment-title">評論標題</h4>-->
    <div class="am-comment-meta">
     <a href="#link-to-user" class="am-comment-author">chaoyi</a>
     評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
    </div>
   </header>
   <div class="am-comment-bd">
    閱誰問君誦,水落清香浮。
   </div>
  </div>

 </li>
 <li class="am-comment am-comment-flip">
  <a href="#link-to-user-home">
   <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
  </a>
  <div class="am-comment-main">
   <header class="am-comment-hd">
    <!--<h4 class="am-comment-title">評論標題</h4>-->
    <div class="am-comment-meta">
     <a href="#link-to-user" class="am-comment-author">chaoyi</a>
     評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
    </div>
   </header>
   <div class="am-comment-bd">
    閱誰問君誦,水落清香浮。
   </div>
  </div>

 </li>
 <li class="am-comment am-comment-highlight">
  <a href="#link-to-user-home">
   <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
  </a>
  <div class="am-comment-main">
   <header class="am-comment-hd">
    <!--<h4 class="am-comment-title">評論標題</h4>-->
    <div class="am-comment-meta">
     <a href="#link-to-user" class="am-comment-author">chaoyi</a>
     評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
    </div>
   </header>
   <div class="am-comment-bd">
    閱誰問君誦,水落清香浮。
   </div>
  </div>
 </li>
</ul>
<!--評論內容左右對齊-->
<article class="am-comment am-comment-flip">
 <a href="#link-to-user-home">
  <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
 </a>
 <div class="am-comment-main">
  <header class="am-comment-hd">
   <!--<h4 class="am-comment-title">評論標題</h4>-->
   <div class="am-comment-meta">
    <a href="#link-to-user" class="am-comment-author">chaoyi</a>
    評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
   </div>
  </header>
  <div class="am-comment-bd">
   閱誰問君誦,水落清香浮。
  </div>
 </div>
</article>
<article class="am-comment am-comment-flip am-comment-highlight">
 <a href="#link-to-user-home">
  <img src="img/100.jpg" alt="" class="am-comment-avatar" width="48" height="48"/>
 </a>
 <div class="am-comment-main">
  <header class="am-comment-hd">
   <!--<h4 class="am-comment-title">評論標題</h4>-->
   <div class="am-comment-meta">
    <a href="#link-to-user" class="am-comment-author">chaoyi</a>
    評論于 <time datetime="2013-07-27T04:54:29-07:00" title="2013年7月27日 下午7:54 格林尼治標準時間+0800">2014-7-12 15:30</time>
   </div>
  </header>
  <div class="am-comment-bd">
   閱誰問君誦,水落清香浮。
  </div>
 </div>
</article>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="assets/ie8/jquery.min.js"></script>
<script src="assets/ie8/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
</body>
</html>

效果圖:

AmazeUI如何實現評論列表

以上是“AmazeUI如何實現評論列表”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女