提示:您可以先修改部分代碼再運行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><style type="text/css">*{ margin:0px; padding:0px; border:0px; }body{ font-size:12px; color:#333;text-align:center;}.Test5study{ background:#fff;}.Test5study{text-align:left;width:220px;height:auto;border:solid 1px #F7BE21;margin:10px auto 0px;overflow: hidden;position: absolute;left: 10px;top: 0px; }.Test5study h2{font-size:14px;height:22px;line-height:22px;background:#FFF7C6;text-indent:10px;position:relative;border-top: 1px solid #fff;border-bottom: 1px solid #F7BE21; font-weight:normal;cursor:pointer;}.Test5study h2 span{font-weight: normal;position:absolute;top:0;right:6px;}.Test5study li{border-bottom:dashed 1px #eee;}.Test5study {border-bottom:solid 1px #F7BE21;}.TxtList{ list-style:disc url(none); margin:6px 10px 6px 20px;}</style></head><body><div id="Test5study" class="Test5study"><h2 id="t1" onclick="ShHi('t1','h1');">傳說中的標題<span>更多...</span></h2><ul class="TxtList" id="h1" ><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li></ul><h2 id="t2" onclick="ShHi('t2','h2');">傳說中的標題<span>更多...</span></h2><ul class="TxtList" id="h2" ><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li></ul><h2 id="t3" onclick="ShHi('t3','h3');">傳說中的標題<span>更多...</span></h2><ul class="TxtList" id="h3" ><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li></ul><h2 id="t4" onclick="ShHi('t4','h4');">傳說中的標題<span>更多...</span></h2><ul class="TxtList" id="h4" ><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li><li>請幫忙把這段代碼再最佳化最佳化...</li></ul></div><script type="text/javascript">/*Homepage:www.111cn.net*/function $(d){return document.getElementById(d);}function f(d){var t=$(d);if (t){return t.style;}else{return null;}}function Hi(){var items = document.getElementsByTagName("ul");for (var i=0;i<items.length;i++){items[i].style.display='none';}}function Hl(){var iteml = document.getElementsByTagName("h2");for (var j=0;j<iteml.length;j++){iteml[j].style.fontWeight='normal';}}function h(d){var s=f(d);var b=s.display;if (b=='none'){return true;}else{return false;}}function ShHi(ii,jj){if(h(jj)){f(jj).display='block';f(ii).fontWeight='bold';}else{f(jj).display='none';f(ii).fontWeight='normal';}}</script></body></html>
提示:您可以先修改部分代碼再運行