国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

html+css+jquery做選項卡

2020-03-24 19:12:09
字體:
供稿:網(wǎng)友
這次給大家?guī)?a href='http://m.survivalescaperooms.com/tag/HTML_5255_1.html' target='_blank'>html+css+jquery做選項卡,html+css+jquery做選項卡的注意事項有哪些,下面就是實戰(zhàn)案例,一起來看一下。

 !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 body{ margin:0px; padding:0px; #main{ width:310px; border:1px solid #C8C8CC; margin-left:auto; margin-right:auto; margin-top:50px; .main_title{ width:310px; border-bottom:1px solid #C8C8CC; height:30px; #main div .chang{ border:1px solid #C8C8CC; float:left; width:153px; height:26px; text-align:center; padding-top:4px; cursor:pointer; .main_head{ width:310px; height:25px; background-color:#FFF4F8; .main_head font{ font-size:13px; color:#808080; margin-top:5px; .main_content{ width:310px; border-top:1px solid #808080; .main_content ul{ margin-left:-30px; margin-top:5px; width:290px; .main_content ul li{ list-style-type:none; font-size:13px; color:#2464B2; border-bottom:1px dotted #808080; line-height:27px; .main_content ul li a{ font-size:13px; color:#2464B2; text-decoration:none; .main_content ul li a:hover{ text-decoration:underline; #main div ul.main_content_chang{ width:290px; position:relative; z-index:100; top:0px; left:0px; display:block; #main div ul{ position:relative; display:none;  /style  script type= text/javascript src= js/jquery-1.9.1.js /script  script type= text/javascript $(function(){ $( .chang ).each(function(index){ $(this).click(function(){ $(this).css( background-color , #E02D29 $(this).siblings( div ).css( background-color , #fff $( #main div ul ).removeClass( main_content_chang $( .main_content ul:eq( +index+ ) ).show().siblings( ul ).hide();  /script  /head  body  div id= main  div >

相信看了這些案例你已經(jīng)掌握了方法,更多精彩請關注php 其它相關文章!

相關閱讀:

form上傳文件后怎樣提示保存action

怎樣用按鈕觸發(fā)實現(xiàn)背景色的閃爍

html里table表數(shù)據(jù)如何轉(zhuǎn)為Json格式

html里怎樣實現(xiàn)異步上傳文件

以上就是html+css+jquery做選項卡的詳細內(nèi)容,html教程

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 龙游县| 昔阳县| 玉林市| 额济纳旗| 林州市| 教育| 郯城县| 家居| 金华市| 色达县| 大冶市| 南丹县| 南木林县| 曲沃县| 策勒县| 龙门县| 宁城县| 平昌县| 东源县| 若尔盖县| 盘锦市| 英山县| 阿克苏市| 永新县| 梁山县| 山东省| 浏阳市| 黔江区| 左贡县| 都匀市| 醴陵市| 罗城| 扎囊县| 繁昌县| 邯郸县| 中江县| 南雄市| 兴文县| 淮安市| 清徐县| 安新县|