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

首頁 > 編程 > JavaScript > 正文

jquery ui 實現 tab標簽功能示例【測試可用】

2019-11-19 11:08:24
字體:
來源:轉載
供稿:網友

本文實例講述了jquery ui 實現 tab標簽功能。分享給大家供大家參考,具體如下:

<!DOCTYPE html><html><head>  <title>www.survivalescaperooms.com tab切換</title>  <style type="text/css">   #tabs{    width:500px;    height:500px;    margin:0 auto;   }   .ui-widget-header{    border:1px solid grey;    background:grey;    color:#fff;    font-weight:bold;   }  </style>  <link rel="stylesheet"  rel="external nofollow" media="screen"/>  <script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>  <script type="text/javascript" src="https://cdn.bootcss.com/jqueryui/1.10.4/jquery-ui.min.js"></script> </head> <body>  <div id="tabs">  <ul>   <li><a href="#tabs-1" rel="external nofollow" >first tab</a></li>   <li><a href="#tabs-2" rel="external nofollow" >second tab</a></li>  </ul>  <div id="tabs-1">   <p>this is the first tab</p>  </div>  <div id="tabs-2">   <p>this is the second tab</p>  </div>  </div>  <script>   $(function(){   $("#tabs").tabs();   });  </script></body></html>

運行效果:

感興趣的朋友可以使用在線HTML/CSS/JavaScript代碼運行工具http://tools.VeVB.COm/code/HtmlJsRun測試上述代碼運行效果。

更多關于jQuery相關內容可查看本站專題:《jQuery頁面元素操作技巧匯總》、《jQuery常見事件用法與技巧總結》、《jQuery常用插件及用法總結》、《jQuery擴展技巧總結》及《jquery選擇器用法總結

希望本文所述對大家jQuery程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 电白县| 手机| 聂荣县| 高州市| 班玛县| 大宁县| 微山县| 乃东县| 筠连县| 修水县| 股票| 九寨沟县| 宁武县| 佳木斯市| 阿瓦提县| 曲麻莱县| 汨罗市| 三亚市| 砚山县| 甘肃省| 营口市| 潼关县| 东源县| 尤溪县| 元朗区| 怀宁县| 同仁县| 隆化县| 南部县| 藁城市| 阿荣旗| 武义县| 汝阳县| 安阳县| 朝阳市| 平泉县| 延吉市| 志丹县| 张家口市| 廉江市| 百色市|