Browse Source

style(member): 修改会员主页样式

tbphp 1 year ago
parent
commit
74eec5c490
2 changed files with 7 additions and 3 deletions
  1. 4 2
      application/member/view/index/index.html
  2. 3 1
      public/static/css/center.css

+ 4 - 2
application/member/view/index/index.html

@@ -39,9 +39,11 @@
           <div class="img">
             <img src="__UPLOAD__/{$vo.head|default='default-user.jpg'}-head180" alt="头像">
           </div>
-          <h2><span>{$vo.name}</span>{eq name="vo['recomm']" value="y"}<img src="__IMG__/hot.png" class="hot" />{/eq}</h2>
+          <div class="h">
+            <h2><span>{$vo.name}</span>{eq name="vo['recomm']" value="y"}<img src="__IMG__/hot.png" class="hot" />{/eq}</h2>
+          </div>
           <p>{$vo.city|default="-"} / {$vo.profession|default="-"}</p>
-          <p>{$vo.sign|default="&nbsp;"}</p>
+          <p class="sign">{$vo.sign|default="&nbsp;"}</p>
         </div>
         <div class="ct">
           <p><span><b>{$vo['look']}</b>人气</span><span><b>{$vo['score']}</b>积分</span></p>

+ 3 - 1
public/static/css/center.css

@@ -17,9 +17,11 @@
 #ban .info .tx .p{width: 12px;height: 12px;background: #ffe500;border-radius: 50%;position: absolute;right: 0;top: 0;}
 #ban .info .tx .img{width: 140px;height: 140px;position: relative;margin: 0 auto;margin-bottom: 8px;}
 #ban .info .tx img{width: 140px;height: 140px;display: block;border-radius: 50%;}
+#ban .info .tx .h{display: block;height: 24px;overflow: hidden;}
 #ban .info .tx h2{height: 24px;font-size: 18px;font-weight: normal;color: #FFD900;line-height: 24px;display: inline-block;}
 #ban .info .tx h2 span{display: inline;float: left;height: 24px;line-height: 24px;}
 #ban .info .tx h2 img.hot{width: 20px;height: 20px;margin: 0;display: inline;float: left;margin-top: 2px;margin-left: 4px;}
+#ban .info .tx p.sign{height: 24px;overflow: hidden;text-overflow: ellipsis;}
 #ban .info .ct{text-align: left;color: #898989;padding: 20px 0;border-bottom: 1px solid #898989;line-height: 24px;}
 #ban .info .ct p{height: 24px;}
 #ban .info .ct span{display: inline;float: left;height: 24px;width: 50%;}
@@ -50,7 +52,7 @@
 #ban .info .about{margin-top: 24px;color: #fff;}
 #ban .info .about .tit{height: 18px;background: url('http://img.1to.cc/center-if.png') 4px 0 no-repeat;padding-top: 16px;padding-left: 46px;font-size: 16px;padding-bottom: 12px;border-bottom: 1px solid #898989;margin-bottom: 6px;}
 #ban .info .about .tit b{display: inline;float: left;margin-right: 22px;font-weight: normal;height: 18px;line-height: 18px;color: #fff;}
-#ban .info .about .tit span{font-size: 14px;display: inline;float: left;height: 18px;line-height: 22px;cursor: pointer;}
+#ban .info .about .tit span{font-size: 14px;display: inline;float: left;height: 18px;line-height: 18px;cursor: pointer;}
 #ban .info .about .tit span.hide{display: none;}
 #ban .info .about .tit span em{display: inline;float: right;width: 13px;height: 7px;background: url('http://img.1to.cc/center-p.png') 0 0;margin-top: 8px;margin-left: 5px;}
 #ban .info .about .tit span.hide em{background-position: 0 -7px;}