dz论坛分类列表模板亲测

2022-03-23 1,252
VIP免费
下载不了?请联系网站客服提交链接错误!
增值服务:

dz论坛分类列表模板亲测

-->
  1. <style>
  2. @media screen and (max-width: 500px) {
  3.          .jnpar_listcon{
  4.                  width: 95%;
  5.                  margin: 0.3rem;
  6.                  border: 1px solid #DDD;
  7.                 float:left;
  8.          }
  9.          .price_y{
  10.                  text-decoration: line-through;
  11.                  color: #BBB;
  12.                  margin-left: 0.15rem;
  13.                  font-size: 0.5rem;
  14.          }
  15.          .price_n{
  16.                  color: red;
  17.                  font-size: 0.7rem;
  18.          }
  19.          .count_red{
  20.                  color: red;
  21.                  font-size: 0.7rem;
  22.          }
  23.          .span_y{
  24.                  float: right;
  25.                  font-size: 0.5rem;
  26.          }
  27.          .jnpar_listinfo{
  28.                  padding: 0.5rem;
  29.                 padding-top:0px;
  30.          }
  31.          .jnpar_online{
  32.                  line-height: 1.5rem;
  33.                  font-family: ‘微软雅黑’;
  34.                  font-size: 0.7rem;
  35.          }
  36.          .commidy_title{
  37.                  display: inline-block;
  38.                  font-size: 0.7rem;
  39.          }
  40.         .onlypc{display: none;}
  41.         .list_allcon{padding:0.5rem;background:white;}
  42. }
  43. @media screen and (min-width: 501px) {
  44.          .jnpar_listcon{
  45.                  width: 280px;
  46.                  margin: 6px;
  47.                  border: 1px solid #DDD;
  48.                 float:left;
  49.          }
  50.          .price_y{
  51.                  text-decoration: line-through;
  52.                  color: #BBB;
  53.                  margin-left: 5px;
  54.          }
  55.          .price_n{
  56.                  color: red;
  57.                  font-size: 16px;
  58.          }
  59.          .count_red{
  60.                  color: red;
  61.          }
  62.          .span_y{
  63.                  float: right;
  64.          }
  65.          .jnpar_listinfo{
  66.                  padding: 10px;
  67.                 padding-top:0px;
  68.          }
  69.          .jnpar_online{
  70.                  line-height: 30px;
  71.                  font-family: ‘微软雅黑’;
  72.                  font-size: 14px;
  73.                  border-bottom: 1px solid #EEE;
  74.                  overflow: hidden;/*超出部分隐藏*/
  75.                  white-space: nowrap;/*不换行*/
  76.                  text-overflow:ellipsis;/*超出部分文字以…显示*/
  77.          }
  78.          .commidy_title{
  79.                  min-width: 50px;
  80.                  font-weight: bold;
  81.                  font-size: 15px;
  82.          }
  83. .jnpar_listauthor img{
  84.         width: 19px;
  85.         border-radius: 50%;
  86.         vertical-align: middle;
  87.         margin-right: 5px;
  88. }
  89.         .list_allcon{padding:10px;}
  90. }
  91. </style>
  92. <div class=”list_allcon cl”>
  93. [loop]
  94. <div class=”jnpar_listcon”>
  95.         <div class=”main_img”>
  96.                 <a href=”{subject_url}” target=”_blank”><img src=”{cphoto_9_value}” width=”100%” height=”300px”/></a>
  97.         </div>
  98.         <div class=”jnpar_listinfo”>
  99.                 <div class=”jnpar_online”><span class=”price_n”>{price_n_9_value}金币</span><span class=”price_y”></span><span class=”span_y”>VIP会员免费</span></div>
  100.                 <div class=”jnpar_online”  style=”padding-bottom:3px;”><a href=”{subject_url}” title=”{subject}” class=”commidy_title”>{subject}</a></div>
  101.                 <div class=”jnpar_online onlypc” style=”border-top:1px dashed #EEE;padding-top:1px;”><span class=”jnpar_listauthor”><img src=”{avatar_small}”/></span><a href=”{author_url}”>{author}</a><span class=”span_y”><a href=”http://wpa.qq.com/msgrd?v=3&uin=304192058&site=Discuz! Board&menu=yes&from=discuz” target=”_blank” title=”QQ”><img src=”source/plugin/jnpar_sortshop/images/site_qq.jpg” alt=”QQ” style=”margin-top:3px;”></a></div>
  102.         </div>
  103. </div>
  104. [/loop]
  105. </div>
  106. <script src=”source/plugin/jnpar_sortshop/js/jquery.min.js” type=”text/javascript”></script>
  107. <script>
  108. jq=jQuery.noConflict();
  109. </script>
  110. <script>
  111. jq(document).ready(function() {
  112.     jq(“.count_red”).each(function() {
  113.         var sales = (jq(this).text());
  114.         if(/^\s*?$/.test(sales)) {
  115.             //如果是空的
  116.             jq(this).text(0)
  117.         } else {
  118.         }
  119.     });
  120. });
  121. </script>
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悟空资源网 网页教程 dz论坛分类列表模板亲测 http://www.wkzy.net/game/195.html

常见问题

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务