微调demo

pull/48/merge
sentsin 2017-03-25 01:12:27 +08:00
parent deb52414e8
commit 7162f838d5
1 changed files with 9 additions and 10 deletions

View File

@ -1,12 +1,11 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>layer-更懂你的web弹窗解决方案</title>
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<script src="../build/layer.js"></script>
<style>
html{background-color:#E3E3E3; font-size:14px; color:#000; font-family:'微软雅黑'}
@ -20,6 +19,9 @@
.button{display:inline-block; *display:inline; *zoom:1; line-height:30px; padding:0 20px; background-color:#56B4DC; color:#fff; font-size:14px; border-radius:3px; cursor:pointer; font-weight:normal;}
.photos-demo img{width:200px;}
</style>
<script src="http://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
<script src="../build/layer.js"></script>
</head>
<body>
<div class="box">
@ -34,8 +36,8 @@
二、如果您的js引入是通过合并处理或者您不想采用layer自动获取的绝对路径您可以通过layer.config()来配置详见官网API页
三、jquery需1.8+
四、更多使用说明与演示请参见layer官网。
五、使用时请务必保留来源请勿用于违反我国法律的web平台。
六、layer遵循LGPL协议将永久性提供无偿服务。版权最终解释权贤心
五、使用时请务必保留来源,请勿用于违反我国法律法规的web平台。
六、layer遵循MIT开源协议将永久性提供无偿服务
</pre>
</div>
@ -52,15 +54,12 @@
//页面一打开就执行放入ready是为了layer所需配件css、扩展模块加载完毕
layer.ready(function(){
//官网欢迎页
layer.open({
type: 2,
title: 'layer弹层组件官网',
fix: false,
title: '欢迎页',
maxmin: true,
shadeClose: true,
area: ['1100px', '600px'],
content: 'http://sentsin.com/jquery/layer/?form=local',
area: ['800px', '500px'],
content: 'http://layer.layui.com/test/welcome.html',
end: function(){
layer.tips('Hi', '#about', {tips: 1})
}