PageRenderTime 57ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/5.0/demos/tabs/cited-by-md/baseuse.html

https://github.com/kissyteam/kissyteam.github.com
HTML | 47 lines | 45 code | 2 blank | 0 comment | 0 complexity | 4584a614160b1229110dfa3d32f7e86b MD5 | raw file
Possible License(s): Apache-2.0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-touch-fullscreen" content="yes">
  8. <title>简单使用tabs</title>
  9. <link rel="stylesheet" type="text/css" href="//g.alicdn.com/kissy/k/5.0.1/css/base.css">
  10. <link rel="stylesheet" type="text/css" href="//g.alicdn.com/kissy/k/5.0.1/tabs/assets/dpl.css">
  11. <link rel="stylesheet" type="text/css" href="//g.alicdn.com/kissy/k/5.0.1/button/assets/dpl.css">
  12. <script type="text/javascript" src="//g.alicdn.com/kissy/k/5.0.1/seed-debug.js" data-config="{combine:true}"></script>
  13. </head>
  14. <body>
  15. <div style="width:90%;margin:0 auto;">
  16. <h1>全新生成节点</h1>
  17. <div id="container">
  18. </div>
  19. </div>
  20. <script type="text/javascript">
  21. require(['tabs'], function(Tabs){
  22. var myTabs = new Tabs({
  23. render : '#container',
  24. width : '60%',
  25. items : [
  26. {
  27. title : 'title of tab-1',
  28. content : 'tab-1 content'
  29. },
  30. {
  31. title : 'title of tab-2',
  32. content : 'tab-2 content',
  33. selected : true //默认选中这个tab
  34. },
  35. {
  36. title : 'title of tab-3',
  37. content : 'tab-3 content',
  38. closable : true //显示关闭按钮,点击删除tab
  39. }
  40. ]
  41. }).render();
  42. });
  43. </script>
  44. </body>
  45. </html>