562b6d79 by 任超

chore:文件夹

1 parent 0fb729f7
1 <!DOCTYPE html>
2 <html lang="zh-cn">
3
4 <head>
5 <title>网页模板商城</title>
6 <meta charset="UTF-8">
7 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8 <meta name="format-detection" content="telephone=no">
9 <meta name="renderer" content="webkit">
10 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
11 <meta http-equiv="Cache-Control" content="no-siteapp" />
12 <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
13 <link rel="alternate icon" type="image/png" href="images/logo-realestate.png">
14 <link rel='icon' href='favicon.ico' type='image/x-ico' />
15 <meta name="description" content="" />
16 <meta name="keywords" content="" />
17 <link rel="stylesheet" href="css/default.min.css?t=227" />
18 </head>
19
20 <body>
21 <div>
22 <div class="layui-carousel" id="test1">
23 <div carousel-item>
24 <div>条目1</div>
25 <div>条目2</div>
26 <div>条目3</div>
27 <div>条目4</div>
28 <div>条目5</div>
29 </div>
30 </div>
31 <div class="layui-carousel" id="test1">
32 <div carousel-item>
33 <div>条目1</div>
34 <div>条目2</div>
35 <div>条目3</div>
36 <div>条目4</div>
37 <div>条目5</div>
38 </div>
39 </div>
40 <div id="test1"></div>
41 <button type="button" class="layui-btn">一个标准的按钮</button>
42 </div>
43 </body>
44
45 </html>
46 <!--[if (gte IE 9)|!(IE)]><!-->
47 <script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
48 <!--<![endif]-->
49 <script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
50 <script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
51 <script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
52 <script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
53 <script type="text/javascript" src="js/main.min.js?t=1"></script>
54 <script src="https://www.layuicdn.com/layui/layui.js"></script>
55 <script>
56 layui.use('carousel', function () {
57 var carousel = layui.carousel;
58 //建造实例
59 carousel.render({
60 elem: '#test1'
61 , width: '100%' //设置容器宽度
62 , arrow: 'always' //始终显示箭头
63 //,anim: 'updown' //切换动画方式
64 });
65 });
66 layui.use('laypage', function () {
67 var laypage = layui.laypage;
68
69 //执行一个laypage实例
70 laypage.render({
71 elem: 'test1' //注意,这里的 test1 是 ID,不用加 # 号
72 , count: 50 //数据总数,从服务端得到
73 });
74 });
75 layui.use('carousel', function () {
76 var carousel = layui.carousel;
77 //建造实例
78 carousel.render({
79 elem: '#test1'
80 , width: '100%' //设置容器宽度
81 , arrow: 'always' //始终显示箭头
82 //,anim: 'updown' //切换动画方式
83 });
84 });
85 </script>
...\ No newline at end of file ...\ No newline at end of file