亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

jquery點(diǎn)擊展示與隱藏更多內(nèi)容

 更新時(shí)間:2016年12月03日 15:00:36   作者:靜深的成長(zhǎng)筆記  
這篇文章主要為大家詳細(xì)介紹了jquery點(diǎn)擊展示與隱藏更多內(nèi)容的相關(guān)資料,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

先上效果圖

點(diǎn)擊前

點(diǎn)擊后展開(kāi)

html代碼

<div id="tips" class="center-block">
                <h5 class="tips_head">
                  <u>遇到問(wèn)題?</u>
                </h5>
                <div class="tips_content">
                  <ol>
                    <li>Ctrl+F5刷新本頁(yè)面</li>
                    <li>關(guān)閉頁(yè)面,重新加載本頁(yè)面和登錄</li>
                    <li>更換瀏覽器(建議使用火狐和谷歌瀏覽器)</li>
                    <li>聯(lián)系我們 </li>
                  </ol>
                </div>
              </div>

jquery代碼

    $(function() { //遇到問(wèn)題的彈出文字
      $("#tips h5.tips_head").bind("click", function() {
        var $tips_content = $(this).next("div.tips_content");
        if ($tips_content.is(":visible")) {
          $tips_content.hide();
        } else {
          $tips_content.show();
        }
      })
    })

css代碼

.tips_head { 
  padding-left:20px; 
  cursor: pointer ;
  text-align:left;
  margin-top:20px;
  color:red;}

.tips_content { 
  padding: ; 
  border-top: 1px solid #0050D0;
  display:block;
  display:none;
  text-indent: 2em;
  text-align:left; }

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論