第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

如何切換列表

想要實現(xiàn)一個切換列表的功能,以下是我的代碼。

<div class="nav-detail">
?<div class="team-introduction"><span>OUR TEAM</span></div>
?<div>
? ?<div class="personel-group">
? ? ?<ul id="personal-group-list">
? ? ? ?<li class="red-line" index="1">
? ? ? ? ?<div>
? ? ? ? ? ?<span>tab1</span>
? ? ? ? ?</div>
? ? ? ?</li>
? ? ? ?<li index="2">
? ? ? ? ?<div>
? ? ? ? ? ?<span>tab2</span>
? ? ? ? ?</div>
? ? ? ?</li>
? ? ? ?<li index="3">
? ? ? ? ?<div>
? ? ? ? ? ?<span>tab3</span>
? ? ? ? ?</div>
? ? ? ?</li>
? ? ? ?<li index="4">
? ? ? ? ?<div>
? ? ? ? ? ?<span>tab4</span>
? ? ? ? ?</div>
? ? ? ?</li>
? ? ?</ul>
? ?</div>
? ?<div class="personel-group-picture">
? ? ?<div class="manager-portrait">
? ? ? ?<img src="../sprite/picture_03.png">
? ? ? ?<img src="../sprite/picture_03.png">
? ? ? ?<img src="../sprite/picture_03.png">
? ? ? ?<img src="../sprite/picture_03.png">
? ? ?</div>
? ? ?<div class="product-portrait">2</div>
? ? ?<div class="programmer-portrait">3</div>
? ? ?<div class="other-portrait">4</div>
? ?</div>
?</div>
</div>

?css:

?nav-detail { ?text-align: center; }

?.team-introduction { ?margin-top: 98px; ?margin-bottom: 60px; ?font-size: 24px; ?font-weight: bold; }

?li { ?list-style-type: none; }

?#personal-group-list li{?

?? list-style-type: none; ??

display: inline-block; ?

?width: 180px; ??

font-size: 18px; ?

?color: #333; ?

?float: left; ?

?padding: 10px 0; ?

?/*border-bottom: 1px solid #D3D3CA;*/

?}?

.red-line { ?border-bottom: 3px solid red; }

?#personal-group-list li div {?

??display: inline;?

??width: 180px;

?}?

.personel-group {?

??text-align: center; ?

width: 720px;?

??margin-left: auto; ?

margin-right: auto;?

}

?.personel-group span { ?cursor: pointer; }

?.personel-group-picture {?

??border-bottom: 1px solid #D3D3CA;?

??width: 1200px; ?margin: 0 auto;

?}

?.manager-portrait { ?padding: 60px 0 60px 0; ?height: 364px; }?

.manager-portrait img { ?margin: 56px; }?

.product-portrait { ?display: none; }?

.programmer-portrait { ?display: none; }?

.other-portrait { ?display: none; }?

?現(xiàn)在就是用js控制每一個tab,點擊tab顯示對應的內(nèi)容,不知道怎么實現(xiàn),求大神求解。

正在回答

1 回答

4個li堆疊在一起,綁定時間到對于的4個按鈕,按鈕1就table1顯示,其他隱藏,一次類推。這不是很直觀么

1 回復 有任何疑惑可以回復我~
#1

鄢棟 提問者

自己已經(jīng)解決了,不過還是謝謝。
2016-10-26 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

如何切換列表

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號