From 80a3fe12684c68448e1dd194f35a5618faf8cccb Mon Sep 17 00:00:00 2001 From: muzi_ys <1099438829@qq.com> Date: Sun, 6 Jan 2019 23:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=95=88=E6=9E=9C=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/macdefault.css | 25 +++++++++--------------- demo.html | 48 ++++++++++++++++++++++++++++++++++++++++------ index.html | 39 +------------------------------------ js/mac.js | 30 ++++++++++++++++++++--------- 4 files changed, 73 insertions(+), 69 deletions(-) diff --git a/css/macdefault.css b/css/macdefault.css index 64fea21..180132f 100644 --- a/css/macdefault.css +++ b/css/macdefault.css @@ -607,7 +607,6 @@ body { width: calc(100% - 20px); min-height: 40px; padding:10px; - margin-top: 4px; transition: background-color 0.5s; position: relative; } @@ -617,19 +616,12 @@ body { animation-duration: 0.5s; } -#win10_command_center .msgs .msg:hover{ - cursor: default; - background-color: rgba(255, 255, 255, 0.19); -} -#win10_command_center .msgs .msg:hover .title{ +#win10_command_center .command-body .notice:hover .notice-body{ color: #333; } -#win10_command_center .msgs .msg:hover>.btn_close_msg{ - color: grey; -} -#win10_command_center .msgs .msg:hover>.content{ - color: #333; +#win10_command_center .command-body .notice:hover>.notice-header .btn_close_msg{ + color: grey; } #win10_command_center .msgs .msg>.title{ @@ -638,13 +630,14 @@ body { line-height: 28px; } -#win10_command_center .msgs .msg>.btn_close_msg{ +#win10_command_center .command-body .notice .notice-header>.btn_close_msg{ cursor: pointer; color: transparent; - padding: 3px; - position: absolute; - top: 11px; - right: 11px; + margin-right: 8px; + font-size: 15px; + display: inline-block; + text-align: right; + float: right; } #win10_command_center .msgs .msg>.btn_close_msg:hover{ diff --git a/demo.html b/demo.html index 1dc89a1..f2fca1c 100644 --- a/demo.html +++ b/demo.html @@ -33,7 +33,18 @@ setTimeout(function () { Win10.newMsg('推荐全屏', '按下F11全屏以达到最佳视觉效果(点击进入)',function () { Win10.enableFullScreen(); - }) + }); + Win10.newMsg('最新资讯', '最新资讯信息',function () { + layer.open({ + type: 2, + title: '最新资讯', + area: ['300px', '380px'], + shade:0, + skin:'win10-open-iframe', + offset: 'rb', + content: './broadcast.html' + }); + }); }, 1500); setTimeout(function () { @@ -106,12 +117,37 @@
+
-
-