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 @@
+
-
-