该问题已被锁定!
4
关注
2562
浏览

能否把网站名称和副标题分开,这样帖子内容标题就清楚多了

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
commyleung 初级会员 用户来自于: 广东省深圳市
2014-07-03 22:57
你是说标签吧?自己去改下模板文件试试 </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','31623');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','31623');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=31623" data-id="31623"> <i class="icon-chat"></i> <span class="answer-comment-count31623">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/question/18129-31623.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31623.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31623.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/question/18129-31623.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-31623" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count31623">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> <div class="aw-answer-item p-3 mb-1 bg-white" data-uninterested_count="0" id="question-answer-31611" data-answer-id="31611"> <div class="user-details-card pt-0 pb-2 position-relative clearfix"> <div class="user-details-card-avatar float-left" style="position: relative"> <a href="/people/kingthing/" class="aw-username" data-id="3019" title="kingthing"> <img src="/storage/avatar/000/00/30/19_avatar_max.jpg" class="rounded" onerror="this.src='/static/common/image/default-avatar.svg'" alt="kingthing" style="width: 40px;height: 40px"> </a> </div> <div class="user-details-card-name float-left ml-2"> <a href="/people/kingthing/" data-id="3019" class="aw-username" title="kingthing">kingthing</a> <span class="badge badge-success">初级会员</span> <span class="ml-2 text-muted font-8">用户来自于: 四川省成都市</span> <br><span class="ml-0"> 2014-07-03 17:38 </span> </div> </div> <div class="aw-content"> <div class="aw-answer-content overflow-hidden"> 截个图来看看 怎么回事 </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','31611');"> <i class="icon-thumb_up"></i> 赞同 <span> 1</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','31611');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=31611" data-id="31611"> <i class="icon-chat"></i> <span class="answer-comment-count31611">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/question/18129-31611.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31611.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31611.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/question/18129-31611.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-31611" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count31611">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> </div> </div> </div> <div class="aw-right col-md-3 px-xs-0"> <div class="r-box mb-1"> <div class="r-title"> <h4>关于作者</h4> </div> <div class="block-content"> <dl class="overflow-hidden mb-0 pb-2 border-bottom"> <dt class="float-left"> <a href="/people/zhangxiaocong/" data-pjax="pageMain" class="aw-username" data-id="7343"> <img src="/storage/avatar/000/00/73/43_avatar_max.jpg" class="rounded" width="45" height="45"> </a> </dt> <dd class="float-right" style="width:calc(100% - 55px)"> <a href="/people/zhangxiaocong/" class="d-block aw-one-line aw-username" data-id="7343" target="_blank"> <strong>张小葱</strong> <span class="badge badge-success">初级会员</span> </a> <p class="mb-0 font-8 text-muted aw-one-line">这家伙很懒,还没有设置简介</p> </dd> </dl> <div class="d-flex text-center pt-3 pb-3 text-muted"> <a href="/people/zhangxiaocong/answer" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>4</dt> <dd>回答</dd> </dl> </a> <a href="/people/zhangxiaocong/article" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>文章</dd> </dl> </a> <a href="/people/zhangxiaocong/question" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>1</dt> <dd>问题</dd> </dl> </a> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>问题动态</h4> </div> <div class="block-content2 pb-2"> <div class="text-center text-muted"> <dl class="clearfix mb-1"> <dt class="float-left">发布时间</dt> <dd class="float-right">2014-07-03 17:21</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">更新时间</dt> <dd class="float-right">2014-07-03 22:57</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">关注人数</dt> <dd class="float-right">4 人关注</dd> </dl> </div> <div> <ul id="questionFocusUsers"> </ul> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>相关问题</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/28112.html">有没好的运营成功网站欣赏呢,br&gt;4的1-2年网站就可以啦</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2300 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/22630.html">如何进行网站迁移?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2305 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/13569.html">网站搬迁问题!数据库连接不上!</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2787 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/8159.html">beta4还是数据库彪升,打不开话题内容页和网站首页 ,怎么优化?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">3031 浏览</label> <label class="mr-2 mb-0">6 关注</label> <label class="mr-2 mb-0">5 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/1253.html">为什么我的域名后面都有一个问号,官方网站上没有</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">3913 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/3533.html">推荐一篇文章:对社交问答网站的一些思考和分析</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2448 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/30446.html">网站突然新注册的会员登陆不上了 登陆提示未登陆</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1641 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/6212.html">求教该cms在windows iis下的虚拟主机下能否架设?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1832 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/27366.html">网站崩溃了,Error Message: Mysqli prepare error: Table './XXXX/aws_users' is marked as crashed </a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2153 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/20979.html">Hi,哪位的网站实现了代码高亮功能,show一下,让群众们围观一下</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2947 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>推荐内容</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/2967.html">关于新版本seo</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1545 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/26540.html">wecenter程序SEO优化技术之调整“发现”频道最新内容为18条</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3022 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/8668.html">建议Anwsion可以自定义分类名称</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2388 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/6737.html">官网的百度收录又下下降了,这是什麽原因引起的呢?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2915 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/30906.html">零基础新手怎么学习SEO?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3539 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/15717.html">简单做了一下配色 欢迎拍砖交流</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1628 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/26915.html">wecenter有没有robots.txt文件呢?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2372 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/31171.html">求助!求助!求助!</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2217 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/32771.html">征集wc网站优化的高手</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3029 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> </div> </div> </div> </div> </div> <!--全局页面内容底部钩子--> <div class="foot"> <div class="container justify-content-center"> <div class="py-3 footauto clearfix"> <div class="float-left ">All Rights Reserved Powered BY <a class="font-w600" href="https://wenda.wecenter.com" target="_blank">WeCenter V4.1.0</a> © 2024 <a target="_blank" class="ml-3" rel="noopener noreferrer" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=34019202000400">皖公网安备 34019202000400号</a></div> <div class="float-right"> <ul> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=about" title="关于我们" target="_blank">关于我们</a></li> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=rule" title="社区规范" target="_blank">社区规范</a></li> </ul> </div> </div> </div> </div> <a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon-arrow-up-circle"></i></a> <script> $(function () { let topNavSwiper = new Swiper('.swiper-nav-container', { speed: 600, grabCursor: true, slidesPerView: "auto", initialSlide: 0, slidesPerGroup: 1 }) }) </script> <script> //导航悬浮 var topMain = $(".navbox").height(); $(window).scroll(function(){ if ($(window).scrollTop()>topMain + 200){ $('.navbox').addClass('suspension'); } else { $('.navbox').removeClass('suspension'); } //更换logo if($('.navbox').hasClass('suspension')){ $(".logoimg").attr('src',"/static/common/image/logo.png"); }else( $(".logoimg").attr('src',"https://wenda.isimpo.com/templates/default/static/images/logo-write.png") ) }); </script> <div id="aw-ajax-box"></div> <!--自动加载js文件--> <script src="/templates/default/static/js/question/detail.js"></script> <div id="browserCheck" style="display: none;"> <div class="p-3"> <div class="mb-2"> <p>你的浏览器版本过低,可能导致网站部分内容不能正常使用!</p> <p>为了能正常使用网站功能,请使用以下浏览器</p> </div> <ul class="d-flex text-center"> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Chrome 2x.jpg"> <span class="d-block">Chrome</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Firefox 2x.jpg"> <span class="d-block">Firefox</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Safari 2x.jpg"> <span class="d-block">Safari</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_IE 10 2x.jpg"> <span class="d-block">IE 10+</span> </li> </ul> </div> </div> <script> var mb = AWS.common.browser(); if ("IE10" !== mb && "FF" !== mb && "Chrome" !== mb && "Safari" !== mb) { var width =$(window).width() > 600 ? '600px' : '85%'; layer.open({ title: '', type: 1, scrollbar: false, shade: 0.7, area: [width], content: $('#browserCheck').html(), }) } </script> <!--全局自定义底部html--> <script> $(document).ready(function () { $.ajax({ type: 'GET', url: "/ajax.Question/get_chat_gpt.html?question_id=18129", dataType:'json', success: function (ret) { if(ret.data.html!=='') { $('#chatGpt_answers_list').html(ret.data.html).removeClass('d-none'); } }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '.showAllFocusUsers', function(event) { $.ajax({ type: 'GET', url: "/ajax/get_question_focus_users.html?question_id=18129", dataType:'json', success: function (ret) { var html=''; $.each(ret.data, function(i,val){ html +='<li class="px-1 d-inline-block"> <a href="'+val.url+'" class="aw-username" data-id="'+val.uid+'" title="'+val.nick_name+'" > <img src="'+val.avatar+'" width="26" height="26" style="border-radius: 50%" alt="'+val.nick_name+'"> </a> </li>'; }); $('#questionFocusUsers').html(html); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '#load_force_fold_answers a', function(event) { if($('#force_fold_answers_list').hasClass('d-none')) { $.ajax({ type: 'GET', url: "/ajax.Question/force_fold_answers.html?question_id=18129", dataType:'json', success: function (ret) { $('#force_fold_answers_list').html(ret.data.html).removeClass('d-none'); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }else{ $('#force_fold_answers_list').html('').addClass('d-none'); } }) $(document).ready(function () { var openEnable="Y"; var answerId = parseInt("0"); var showAll = $('#show-all'); if(openEnable==='Y') { $('.aw-question-show').click(); $('.aw-answer-show').click(); if(showAll.height() >= 120) { $('.aw-question-hide').show(); } }else{ if(showAll.height() >= 120) { showAll.show().css('height','120px'); $('.aw-question-show').show(); } } $(document).on('click', '.aw-question-show', function (e) { $('.aw-question-show').hide(); showAll.show().css('height','auto'); $('.aw-question-hide').show(); }); $(document).on('click', '.aw-question-hide', function (e) { $('.aw-question-hide').hide(); showAll.show().css('height','120px'); $('.aw-question-show').show(); }); $('.aw-answer-item .aw-answer-content').each(function(){ if($(this).height() >= 200) { if(openEnable==='Y') { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ if(answerId) { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ $(this).css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); } } } }); $(document).on('click', '.aw-answer-show', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }); $(document).on('click', '.aw-answer-hide', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); }); }); </script> <form id="attach-download-form" action="/upload/download.html" method="post"> <input type="hidden" id="attach-name" name="name" value=""> <input type="hidden" id="attachType" name="type" value="0"> </form> </body> </html>