|
板凳
樓主 |
發表于 2024-3-10 00:09:14
|
只看Ta
找了一天,總算是找出點眉目,不懂代碼的人找起來好難。圖片就自己扒了,下面整理出來官方四段代碼。美中不足的是沒找出來回復層怎么展示那個最佳回復的圖標,另外多少人回答這個代碼好似錯的。請高手指點一二。
【尋找最佳答案】 文件:wiewthread_reward.htm 去掉原來reward_answer(我來回復)等內容,約9行開始
<div class="keke_ans_boxs" id="keke_ans_boxs">
<a class="keke_ans_hf" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]{if $_GET[from]}&from=$_GET[from]{/if}">我知道答案</a>
<span class="tiszj"> </span> 回答被采納將會獲得<span class="coin"><i></i></span><span class="coin">$rewardprice</span> 金錢<span style="margin-left:15px; padding-left:15px; border-left:1px dashed #CCC;" id="answernum"> 已有<span class="coin">$actorcount</span>人回答</span>
</div>
<style>
.rwdn .pns button{ display:none}
.keke_ans_boxs{box-shadow: 0 0 20px 0px #E3E3E3;margin: 25px 0;line-height:45px; height:45px; padding:10px 0px 10px 40px;font-family:Microsoft Yahei; font-size:14px; padding-left:180px; background: url(images/icon05.png) no-repeat 15px 15px transparent; border-radius:30px;}
.keke_ans_boxs .coin {color: #df3031;font-size: 14px;margin-left: 3px;}
.keke_ans_boxs .tiszj{ color:#df3031; font-weight:bold; font-size:16px; margin-right:18px; border-right:1px dashed #CCC; padding:0px 15px; height:26px; line-height:26px;}
.coin i {font-style: normal;display: inline-block;width: 12px;height: 13px;background: url(images/coin.png) no-repeat;margin-right: 6px;vertical-align: middle;}
.keke_ans_boxs .keke_ans_hf{border-radius:30px; float:right; line-height:25px; text-align:center; padding:0 10px 0 35px; color:#FFF !important;background:url(images/ico1.png) 10px no-repeat #df0303; margin-top:10px; margin-right:10px; text-decoration:none}
</style>
11.jpg (25.46 KB, 下載次數: 12)
下載附件
2024-3-10 00:06 上傳
【設為最佳答案】 文件:viewthread_node.htm 原文件432行
<div class="asnbtn"><a href="javascript:" id="keke_answer" class="zjda">設置為最佳答案</a></div>
<script>
var divWidth = $("keke_ans_boxs").clientWidth;
if(divWidth<770){
$('answernum').style.display = "none";
}
</script>
<style>
.asnbtn a{color:#FFF;font-size:12px;text-decoration:none;}.zjda{background:#a9e053; float: right; color:#FFF; padding:5px 10px; text-align:center;font-family:Microsoft Yahei;margin-bottom:10px;text-decoration:none}
.kkstampbox{ position:relative;}
.kkstamp{ position:absolute; right:80px; top:0px}
.kkstamp img{ max-width:125px; max-height:125px;}
</style>
【最佳答案】文件:wiewthread_reward.htm 去掉重復的內容,約41-63行
<div class="keke_ans_box" id="keke_ans_box">
<div class="zjdabox">
<span class="delans"><span class="coin" style="margin-left:5px;"><i></i></span><span class="coin">$rewardprice</span> 金錢</span><h3>最佳答案</h3>
<style>
.rwdn .pns button{ display:none}
.keke_ans_box {box-shadow: 0 0 20px 0 #E3E3E3;border: 1px solid #e8e8e8;background: transparent;margin: 25px 0; padding: 0 17px 20px 17px; font-family:Microsoft Yahei; border-radius:5px;}
.keke_ans_box a{ text-decoration:none;}
.keke_ans_box .delans{ float:right; margin-top:10px; color:#9eacb6; font-size:12px}
.keke_ans_box .delans a{ color:#F60; display:block}
.zjdabox {width:100%;margin: 0 auto;}
.zjdabox h3 {height: 50px;font-size: 16px;line-height: 50px;font-weight: 800;color: #ff4f53;background: url(images/answer_icon.png) no-repeat 0 0;padding-left: 55px;margin-top: -1px;}
.keke_ans_box .zjda_text {width:100%;overflow: hidden;font-size: 14px;font-family: microsoft yahei; line-height: 28px;margin: 10px 0 0;}
.keke_ans_clear {clear: both;height: 0;overflow: hidden;}
.keke_ans_box .ask_date {clear: both;padding:16px 0px 0; margin:0px;}
.keke_ans_box .ask_date li {float: left;color: #999;line-height:28px; list-style:none; padding:0px; margin:0px 10px 0px 0px}
.keke_ans_box .ask_date li.jb {float: right;margin: 0;color: #333;}
.keke_ans_box .ask_date li.jb a{ color:#999 ;font-size:12px}
.ans_ava img{ width:25px; height:25px; border-radius:50px}
.ans_ava{ float:left; margin-right:5px;}
.zjdabox .coin {color: #d2554b;font-size: 14px;margin-left: 0px;}
.coin i {font-style: normal;display: inline-block;width: 12px;height: 13px;background: url(images/coin.png) no-repeat;margin-right: 6px;vertical-align: middle;}
</style>
|
|