请在 下方输入 要搜索的题目:

HTML标题是通过

-

等标签进行定义的,( )定义最大的标题。
选项:

A:

;
B:; <br/>C:<caption>; <br/>D:<h6></h1> <div class="option"> <!--HTML标题是通过 <h1> - <h6> 等标签进行定义的,( )定义最大的标题。选项: A:<h1>; B:<title>; C:<caption>; D:<h6>--> </div> <div class="tag"> <a href="/tag/%E5%AE%9A%E4%B9%89.html" title="定义">定义</a> <a href="/tag/%E6%A0%87%E7%AD%BE.html" title="标签">标签</a> <a href="/tag/%E6%A0%87%E9%A2%98.html" title="标题">标题</a> </div> <div class="question-info"> <div> 发布时间:<span class="question-time">2024-06-13 10:56:55</span> </div> </div> </div> </article> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="https://www.studypro.club" title="搜题小帮手">首页</a></li> <li class="breadcrumb-item"><a href="/zjcsda" title="章节测试答案">章节测试答案</a></li> </ol> <div class="card answer-box"> <div class="card-header l-r"> <div class="l-left"> <i class="bi bi-check-circle-fill check"></i>推荐参考答案 <span class="desc">( <i class="bi bi-award vip"></i> 由 搜题小帮手 官方老师解答 )</span> </div> <div> <a class="btn btn-success" href="/kefu" target="_blank" rel="nofollow">联系客服</a> </div> </div> <div class="card-body"> <div id="answer" class="answer-content"> 答案:<span id="answer-span"></span> <hr/> <div style="font-size: 15px;font-weight: 100;"> <p style="font-size: 16px;color: red;">以下文字与答案无关</p> <p>提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。</p> </div> </div> <button class="btn btn-primary answer-btn look-btn" type="button" onclick="showAnswer()"><i class="bi bi-search"></i> 查看参考答案</button> </div> </div> <div class="card type-question-list"> <div class="card-header">相关试题</div> <div class="card-body box"> <ul class="list-group list-group-flush xiangguan"> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-1c1eee828d2fea80ef5a8b3f16a9b41f.html" title="关于HTML标题,下列说法错误的是( )A、<h1>标签定义的标题最大B、<h6>标签定义的标题最小C、<h1>~<h6>标签定义的标题,字号依次变小D、<h1>~<h6>标签定义的标题,字号依次变大"><span class="xuhao">1.</span>关于HTML标题,下列说法错误的是( )A、<h1>标签定义的标题最大B、<h6>标签定义的标题最小C、<h1>~<h6>标签定义的标题,字号依次变小D、<h1>~<h6>标签定义的标题,字号依次变大</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-aab44d4b96ea74b8d9b772142bfb74e7.html" title=" HTML 标题是通过<h1>-<h6>标签来定义的。( )选项: A:对 B:错"><span class="xuhao">2.</span> HTML 标题是通过<h1>-<h6>标签来定义的。( )选项: A:对 B:错</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-82c23fabdff8aea98cbd8b6905aa22fb.html" title="<h1> - <h6> 标签可定义标题。那么,最大的标题是?( )选项: A:<h1> B:<h2> C:<h5> D:<h6>"><span class="xuhao">3.</span><h1> - <h6> 标签可定义标题。那么,最大的标题是?( )选项: A:<h1> B:<h2> C:<h5> D:<h6></a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-1d016461d94428d8cd4c4699f5ab9f34.html" title="智慧职教: h1至h6标签可定义标题,其中h1定义()"><span class="xuhao">4.</span>智慧职教: h1至h6标签可定义标题,其中h1定义()</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-fcff14d0b8b414015e6cc83ce0ae5eb4.html" title="标题标记共有<h1>、<h2>… <h6>六级,用于定义标题,其中<h1> 定义最小的标题,<h6> 定义最大的标题,所有的标题形式均是以粗体来显示的。选项: A:正确; B:错误"><span class="xuhao">5.</span>标题标记共有<h1>、<h2>… <h6>六级,用于定义标题,其中<h1> 定义最小的标题,<h6> 定义最大的标题,所有的标题形式均是以粗体来显示的。选项: A:正确; B:错误</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-3f289c7e114f8d0835122a7fdce63835.html" title="标题级别最高的标题标签是 选项: A、<;h1>; B、 <;h5>; C、 <;h6>; D、 <;h7>;"><span class="xuhao">6.</span>标题级别最高的标题标签是 选项: A、<;h1>; B、 <;h5>; C、 <;h6>; D、 <;h7>;</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-0640395fc76aa164c39a3ac0272bf151.html" title="在HTML中,主要用以下哪个标签表示网站标题 选项: A、head标签 B、body标签 C、title标签 D、h1标签"><span class="xuhao">7.</span>在HTML中,主要用以下哪个标签表示网站标题 选项: A、head标签 B、body标签 C、title标签 D、h1标签</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-e1607b124bf5662af924b13047a477f2.html" title="以下标记符中,用于设置页面标题的是( ) 选项: A、<;title>; B、 <;caption>; C、 <;head>; D、 <;h1>;"><span class="xuhao">8.</span>以下标记符中,用于设置页面标题的是( ) 选项: A、<;title>; B、 <;caption>; C、 <;head>; D、 <;h1>;</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-fed99b40e47ceacecc636eb7c7b36dd4.html" title="用于定义表格标题的HTML标记是(   )。   选项: A:table; B:caption; C:th; D:tr"><span class="xuhao">9.</span>用于定义表格标题的HTML标记是(   )。   选项: A:table; B:caption; C:th; D:tr</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-84ad010fd732b7c13a3fc88cf2d6b8ec.html" title="HTML里用于定义标题的标记是( )。选项: A:html; B:head; C:title; D:body"><span class="xuhao">10.</span>HTML里用于定义标题的标记是( )。选项: A:html; B:head; C:title; D:body</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-d2511ab0d3664ae3de6b02e8e2934f83.html" title="HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr>"><span class="xuhao">11.</span>HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr></a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-b809b77b83d221eda9b761017c2cebde.html" title="HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr>"><span class="xuhao">12.</span>HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr></a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-4e251f49ab824846201d49d577d14aa6.html" title="在HTML中,用来定义网页标题的标签是 "><span class="xuhao">13.</span>在HTML中,用来定义网页标题的标签是 </a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-646f260f66e05ade5b0daf27fbbb7f0b.html" title="HTML中( )用于定义文档的标题。 选项: A:font B:title C:align D:head"><span class="xuhao">14.</span>HTML中( )用于定义文档的标题。 选项: A:font B:title C:align D:head</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-168b60402abd29f575838d13a6ff9634.html" title="HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr>"><span class="xuhao">15.</span>HTML中定义无序列表的标签是( )。 选项: A:<h1> B:<ol> C:<ul> D:<tr></a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-2e850c04ea8b54e7d902a54c1db1116e.html" title="标题级别最高的标签为( ) 选项: A、h1 B、 C、 D、"><span class="xuhao">16.</span>标题级别最高的标签为( ) 选项: A、h1 B、 C、 D、</a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-e8af07b9f08aec76c22e9814deea1587.html" title="用H1标记符修饰的文字通常比用H6标记符修饰的要小。() 选项:A、用H1标记符修饰的文字通常比用H6标记符修饰的要小。() "><span class="xuhao">17.</span>用H1标记符修饰的文字通常比用H6标记符修饰的要小。() 选项:A、用H1标记符修饰的文字通常比用H6标记符修饰的要小。() </a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-10687ed441b991761c91b950b88667da.html" title="以下标记符中,用于设置页面标题的是() 选项:<title>|<caption>|<head>|<html>"><span class="xuhao">18.</span>以下标记符中,用于设置页面标题的是() 选项:<title>|<caption>|<head>|<html></a> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> <a class="question-item" href="/question-fafdc827a306d6f6c0e6e4b1561e813d.html" title="在HTML中,用于定义网页标题的标记是_ 选项: A:<title><title> B:<p></p> C:<img src=""> D:<table > </table>"><span class="xuhao">19.</span>在HTML中,用于定义网页标题的标记是_ 选项: A:<title><title> B:<p></p> C:<img src=""> D:<table > </table></a> </li> </ul> </div> </div> </div> <div class="right"> <a class="add-box" href="#" rel="nofollow"> <img src="/storage/cms/20240324/7cbfbd7170a92c51359bcf86ffe0a4fb.png" alt=""> <div id="indexnow" style="width:0;height:0;"></div> </a> <div class="card shadow-3 user-card"> <div class="card-header"><a href="/user/main.html" class="menu-item is">用户中心</a></div> <div class="card-body" style="padding: 15px;"> <div class="right-user"> <div class="user-btn"> <a class="login-btn" href="javascript:void(0)" onclick="showLogin()" rel="nofollow">登录</a> <span>没有账号?<a href="javascript:void(0)" onclick="showLogin('reg')" rel="nofollow">点我注册</a></span> </div> </div> </div> </div> <div class="card shadow-3 user-card"> <div class="card-header"><span class="menu-item is">热门标签</span></div> <div class="card-body" style="padding: 15px;"> <a href="/tag/%E7%A7%8B%E6%80%9D.html" title="秋思" class="tag_a">秋思</a> <a href="/tag/%E5%A4%96%E7%BD%A9.html" title="外罩" class="tag_a">外罩</a> <a href="/tag/%E6%97%B6%E5%B0%9A%E5%A5%B3%E8%A3%85.html" title="时尚女装" class="tag_a">时尚女装</a> <a href="/tag/%E5%86%B2%E5%86%B3.html" title="冲决" class="tag_a">冲决</a> <a href="/tag/%E5%8D%B7%E5%9C%9F%E9%87%8D%E6%9D%A5.html" title="卷土重来" class="tag_a">卷土重来</a> <a href="/tag/%E4%BC%91%E6%81%AF%E6%97%A5.html" title="休息日" class="tag_a">休息日</a> <a href="/tag/%E9%A3%8E%E5%8A%9B.html" title="风力" class="tag_a">风力</a> <a href="/tag/%E5%9B%BE%E6%96%87.html" title="图文" class="tag_a">图文</a> <a href="/tag/%E6%B9%BF%E9%80%8F.html" title="湿透" class="tag_a">湿透</a> <a href="/tag/%E8%BF%B7%E8%B7%AF.html" title="迷路" class="tag_a">迷路</a> </div> </div> </div> </div> <footer class="footer"> <p class="state"> <a href="/help/about.html" title="关于我们" rel="nofollow">关于我们</a> <a href="/help/mianze.html" title="免责声明" rel="nofollow">免责声明</a> <a href="/help/lianxi.html" title="联系我们" rel="nofollow">联系我们</a> <a href="/kefu" title="在线客服" rel="nofollow">在线客服</a> </p> <p class="copyright"> <p>声明:本站所有素材/文章除标明原创外,均来自网络转载,版权归原作者所有,如果有侵犯到您的权益,请联系本站删除,谢谢合作!</p> 友情链接<a href="https://www.1024.sale" target="_blank">网课小助手</a> | <a href="https://www.studyicu.com" target="_blank">网课小帮手</a> | <a href="https://www.tiku.icu" target="_blank">网课帮手</a>| <a href="https://www.tiku.icu" target="_blank">网课帮手</a> | <span style="block"> 备案号:<a href="http://beian.miit.gov.cn">粤ICP备2021119840号-5</a></span> <p>copyright © 2024 搜题小帮手 all rights reserved. </p> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?40690513c99b6f31d48b3a275772213f"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?c28c53d5ef769e659a48f88f4e82c0de"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> (function(){ var canonicalURL, curProtocol; //Get the <link> tag var x=document.getElementsByTagName("link"); //Find the last canonical URL if(x.length > 0){ for (i=0;i<x.length;i++){ if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ canonicalURL=x[i].href; } } } //Get protocol if (!canonicalURL){ curProtocol = window.location.protocol.split(':')[0]; } else{ curProtocol = canonicalURL.split(':')[0]; } //Get current URL if the canonical URL does not exist if (!canonicalURL) canonicalURL = window.location.href; //Assign script content. Replace current URL with the canonical URL !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})(); </script> </p> </footer> <!--公用js--> <!--<script src="/static/sosoti/js/bootstrap.min.js" ></script>--> <script src="/static/sosoti/js/bootstrap.bundle.min.js" ></script> <script src="/static/jquery.min.js"></script> <script src="/static/sosoti/js/layer/layer.js"></script> <!--登录窗口--> <div class="login-box"> <div class="login-model"> <div class="title">登录 - 搜题小帮手</div> <div class="body"> <form action="#" onsubmit="return false"> <input type="hidden" name="token_login" value=""> <input class="form-control" id="phone_login" maxlength="11" name="phone_login" type="number" placeholder="手机号码" required=""> <input class="form-control" id="password_login" maxlength="20" name="password_login" type="password" placeholder="密码" required=""> <div class="input-group"> <input type="text" class="form-control" placeholder="验证码" id="code_login" name="code_login"> <!--<img class="code" id="loginCatcha" src="/user/login/captchalogin.html" alt="">--> <img class="code" id="loginCatcha" src="" alt="点我刷新"> </div> <button type="button" onclick="login()" class="btn btn-primary full">登录</button> </form> </div> <div class="tips"> <!-- <a href="#">忘记密码</a> |--> <span class="goregist" onclick="tabLogin('reg')">立即注册</span> </div> <div class="action"> <a class="findUserPass" href="/user/login/findAccount.html">已购买搜题包,但忘记账号密码?</a> </div> <div class="notic"> 登录即同意 <a href="/help/xieyi.html" target="_blank">《服务协议》</a> 及 <a href="/help/yinsi.html" target="_blank">《隐私政策》</a> </div> </div> <div class="reg-model"> <div class="title">注册 - 搜题小帮手</div> <div class="body"> <form action="#" onsubmit="return false"> <input type="hidden" name="token_reg" value=""> <input class="form-control" id="phone_reg" maxlength="11" name="phone_reg" type="number" placeholder="手机号码" required=""> <input class="form-control" id="password_reg" maxlength="20" name="password_reg" type="password" placeholder="密码" required=""> <div class="input-group"> <input type="text" class="form-control" placeholder="验证码" name="code_reg" id="code_reg"> <!--<img class="code" id="regCatcha" src="/user/login/captcharegister.html" alt="">--> <img class="code" id="regCatcha" src="" alt="点我刷新"> </div> <!-- <div class="input-group"> <input type="text" class="form-control" placeholder="短信验证码" name="sms_code_reg" id="formSmsCode"> <button class="btn btn-success btn-sm" type="button" id="send_sms_btn" onclick="sendSms()">获取验证码</button> </div>--> <button type="button" onclick="register()" class="btn btn-primary full">确认注册</button> </form> </div> <div class="tips"> <span onclick="tabLogin('login')">立即登录</span> </div> <div class="notic"> 登录即同意 <a href="/help/xieyi.html" target="_blank">《服务协议》</a> 及 <a href="/help/yinsi.html" target="_blank">《隐私政策》</a> </div> </div> </div> <script src="/static/sosoti/action/login.js?t=1725887596"></script> <script src="/static/sosoti/jquery.qrcode.min.js"></script> <script src="/static/sosoti/cookie.min.js"></script> <!-- 购买模块 --> <div class="model" style="display: none"> <div class="buyModel"> <div class="buy_model"> <div class="buy_top"> <img class="buy_top_icon" src="/static/sosoti/buyimg/buy_card_i.png" alt=""> <span class="buy_top_name">购买搜题卡查看答案</span> <span class="buy_top_txt">购买前请仔细阅读<a href="/help/xuzhi.html" target="_blank" style="color: #E5E6E8">《购买须知》</a></span> </div> <div class="buy_box"> <div class="buy_item"> <div class="buy_item_view " data-id="1"> <span class="item_recom blue">体验</span> <span class="item_txt">30天体验包</span> <div class="item_num">¥<span>5.99</span></div> <div class="item_fuli">无赠送,体验一下</div> <div class="item_price">查看100次答案</div> </div> <div class="buy_item_view item_active" data-id="2"> <span class="item_recom green">推荐</span> <span class="item_txt">半年基础包</span> <div class="item_num">¥<span>9.99</span></div> <div class="item_fuli">畅享300次搜题</div> <div class="item_price">查看300次答案</div> </div> <div class="buy_item_view " data-id="3"> <span class="item_recom ">随心用</span> <span class="item_txt">超值包一年</span> <div class="item_num">¥<span>29.99</span></div> <div class="item_fuli">超值包,一万次搜题</div> <div class="item_price">查看10000次答案</div> </div> <div class="buy_item_view " data-id="4"> <span class="item_recom green">月卡</span> <span class="item_txt">月卡</span> <div class="item_num">¥<span>19.99</span></div> <div class="item_fuli">30天无限搜题</div> <div class="item_price">查看30天答案</div> </div> </div> <div class="buy_label"> <div>请选择支付方式</div> <span onclick="showLogin()" style="font-weight: 500;color: #fff;cursor: pointer;border-radius: 8px;padding: 9px;background: #ff9800!important;">已有帐号 点我登陆</span> </div> <ul class="buy_pay"> <li class="buy_pay_view pay_active" data-type="WXPC"> <img src="/static/sosoti/buyimg/oweb_tc_wetpay.png" alt=""> <span>微信支付</span> </li> <li class="buy_pay_view" data-type="ALIPAYQR"> <img src="/static/sosoti/buyimg/oweb_tc_alipay.png" alt=""> <span>支付宝扫码</span> </li> </ul> <div class="buy_user"> <label>请输入您的手机号码:</label> <input type="text" id="payPhone" style=" outline-style: none; border: 1px solid red; border-radius: 3px; padding: 6px 10px; /* width: 620px; */ font-size: 14px; font-weight: 700; " placeholder="填写您的手机号码作为账号"/> </div> <div class="buy_agree">点击支付即表示同意并接受了<a href="/help/xieyi.html" target="_blank">《服务协议》</a>和<a href="/help/xuzhi.html" target="_blank">《购买须知》</a> </div> <span class="buy_btn_txt2">填写手机号码系统自动为您注册</span> <div class="buy_btn" onclick="submitOrder()"> <span class="buy_btn_txt1">立即支付</span> </div> <a class="buy_notes" target="_blank">我们不保证100%有您要找的试题及正确答案!请确保接受后再支付!</a> </div> <div class="buy_link"> <a class="buy_link_a" href="/kefu" target="_blank">联系客服</a> <div class="buy_link_trust"> <img src="/static/sosoti/buyimg/foot_red.png" alt=""> <img src="/static/sosoti/buyimg/foot_blue.png" alt=""> <img src="/static/sosoti/buyimg/foot_green.png" alt=""> </div> <a class="buy_link_a" href="/user/login/findAccount.html" target="_blank">找回账号密码</a> </div> </div> </div> </div> <div class="qrcode-model" id="qrcode-model" style="display: none"> <div class="qrcode-box"> <div class="qrcode-type" id="qrcode-type">微信支付</div> <div class="qrcode-img" id="qrcode-img-box"> </div> <div class="qrcode-order">订单号: <span id="qrcodeOrder">1111</span></div> <div class="qrcode-desc">遇到问题请 <a href="#" target="_blank">联系客服</a></div> </div> </div> <div class="alipayDiv"></div> <div class="result-model" style="display: none"> <div class="gener_in"> <div class="suc_top"> <img src="/static/tiku/img/ok.png" style="width: 100px" alt=""> <div class="suc_top_text"> <div class="suc_top_title">恭喜您,购买搜题卡成功</div> <div class="suc_top_txt">系统为您生成的账号密码如下:</div> </div> </div> <div class="gener_account"> <div class="gener_input"> <span>账号</span> <input type="text" class="result-account" id="uname" readonly=""> </div> <div class="gener_input"> <span>密码</span> <input type="text" class="result-password" id="password" readonly=""> </div> </div> <div class="gener_tip"> <div><b>重要提示:</b>请勿将账号共享给其他人使用,违者账号将被封禁。</div> </div> <div class="gener_btn_row"> <button class="gener_btn_save">保存账号查看答案</button> </div> </div> </div> <div class="alipay_dialog" style="display: none"> <div class="alipay_title"> 请不要关闭本页面,支付完成后请点击【支付完成】按钮 </div> <ul class="alipay_btn"> <li class="btn btn_sure">支付完成</li> <li class="btn btn_cancel">取消支付</li> </ul> <div class="alipay_notes"> 遇到问题请联系<a class="notes_a" href="/kefu" target="_blank">在线客服</a> </div> </div> <script src="/static/sosoti/action/buyjs.js?t=1725887596"></script> <!--<div class="ad-model" style="padding: 30px;text-align: center;display:none;"> <div style="font-size: 20px;font-weight: 500;color: #06bc76;">可免费查看试题答案</div> <div style="margin-top: 10px;margin-bottom: 10px">请使用 <strong>微信扫一扫</strong> 即可查看</div> <img style="width: 240px" src="https://cha.studypro.club/qrcode.png" alt=""> </div>--> <script> var look_number = 0; var questionId = "MTM3NTUzMDk="; var parse_content = $('#parse').html() if (/http.*.(png|jpg)/.test(parse_content) && !/<img/.test(parse_content)) { parse_content = parse_content.replace(/(http.*?(png|jpg))/g, "<img src=$1 />") $('#parse').html(parse_content.replace("选项:","<br/><br/>选项:<br/>")); } function openBuy(is_ad = false){ layer.open({ type: 1, shade: 0.5, title: false, //不显示标题 content: $('.model'), end:function (){ if(is_ad === true){ // showAd() } } }); } function showAd(){ layer.open({ type: 1, shade: 0.5, title: false, //不显示标题 shadeClose:true, content: $('.ad-model') }); } if($("#view_num").attr('value') > 199999){ showAnswer() } let view_num = document.getElementById('view_num') var autoAnswer = document.getElementById('autoAnswer'); if(autoAnswer){ if (localStorage.getItem('autoAnswerChecked') === 'true') { autoAnswer.checked = true; if(view_num){ if(view_num.getAttribute('value') > 20){ showAnswer(); }else{ layer.msg('可用次数低于20,已关闭自动查看答案', {icon: 2}); autoAnswer.checked = false; } } } autoAnswer.addEventListener('change', function() { localStorage.setItem('autoAnswerChecked', this.checked); // 判断复选框的状态 if (this.checked) { // 复选框被选中时的操作 layer.alert("此操作将会帮你自动点开查看答案按钮;<br>点开题目自动查阅答案;<br>每题扣1次;", {title:"开启自动查看答案"}, function(){ layer.msg('已开启自动查看答案', {icon: 1}); showAnswer(); }); // 在这里可以编写其他逻辑来处理复选框被选中时的情况 } else { // 复选框未被选中时的操作 layer.msg('已关闭自动查看答案', {icon: 2}); // 在这里可以编写其他逻辑来处理复选框未被选中时的情况 } }); } function showAnswer(){ $.ajax({ url: "/answer.html", type: "POST", dataType: "json", data: { id: questionId, type:'question' }, success: function (res) { if (res.code === 200) { $("#answer").show() if (/http.*.(png|jpg)/.test(res.data) && !/<img/.test(res.data)) { res.data = res.data.replace(/(http.*?(png|jpg))/g, "<img src=$1 />") } $("#answer-span").html(res.data); document.querySelectorAll("#answer img").forEach(img => img.style.maxWidth = "500px"); $(".look-btn").hide(); return false; } // 更具体的错误信息处理 if(res.code === 990){ showAd() return false; } if(res.code === -6){ // 未登录 openBuy(true) return false; } if(res.code === -2){ // 看答案的次数不足 openBuy() return false; } layer.alert(res.msg,{icon:0}); } }); } // updateIndexNow() /* function updateIndexNow(){ let question_list = [location.href]; // $(".question-item").each((_,v)=>question_list.push(v.href)); let key = '32ab4fe5aa364dd9b1de25bea7eb6d06'; // 遍历question_list中的每个链接 question_list.forEach(function(questionUrl) { // 创建图片元素 var img = document.createElement('img'); // 构建图片的 src 属性,将问题链接作为参数传递给 IndexNow API img.src = "https://www.bing.com/indexnow?key="+key+"&url=" + encodeURIComponent(questionUrl); // 当图片加载失败时隐藏图片 img.onerror = function() { this.parentNode.removeChild(this); }; // 将图片元素添加到页面中 document.getElementById('indexnow').appendChild(img); }); }*/ updateIndexNow() function updateIndexNow() { let question_list = [location.href]; $(".question-item").each((_,v)=>question_list.push(v.href)); let key = '32ab4fe5aa364dd9b1de25bea7eb6d06'; // 构建 POST 请求的数据对象 let data = { host:location.host, key: key, urlList: question_list }; fetch('/proxy-bing', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) } document.addEventListener('DOMContentLoaded', function() { const showInput = document.querySelector('.show-input'); const searchInput = document.querySelector('.search-input'); const textarea = searchInput.querySelector('textarea'); const buttonAddon2 = document.getElementById('button-addon2'); showInput.addEventListener('mousedown', function() { searchInput.classList.remove('hide'); showInput.classList.add('hide'); setTimeout(()=>{ textarea.focus(); textarea.selectionStart = textarea.selectionEnd = textarea.value.length; },10) }); document.addEventListener('mousedown', function(event) { // 如果点击的目标不是显示搜索框的按钮,且不在搜索框内部,则隐藏搜索框 if (!textarea.value && !event.target.classList.contains('show-input') && !event.target.classList.contains('form-control') && !searchInput.contains(event.target)) { //searchInput.classList.remove('show'); searchInput.classList.add('hide'); showInput.classList.remove('hide'); } }); search_txt.addEventListener('keydown', function(event) { if (event.keyCode === 13) { // 在这里可以执行回车键按下时的操作 buttonAddon2.click(); setTimeout(()=>{ buttonAddon2.disabled = true; },100) event.preventDefault(); } }) }); </script> </body> </html>