样式修正

打开窗口菜单倒序
This commit is contained in:
muzi_ys 2019-01-05 01:16:28 +08:00
parent 3080e1a878
commit caed3f94b9
2 changed files with 8 additions and 4 deletions

View File

@ -541,7 +541,7 @@ body {
.win10-open-iframe .layui-layer-title{ .win10-open-iframe .layui-layer-title{
box-sizing: border-box; box-sizing: border-box;
background: rgba(250, 250, 250, 0.9); background: rgba(250, 250, 250, 0.9);
padding-right: 160px; padding-left: 120px;
border-radius:4px 4px 0px 0px; border-radius:4px 4px 0px 0px;
color: #333; color: #333;
text-align:center; text-align:center;
@ -706,7 +706,7 @@ body {
.win10-open-iframe .layui-layer-ico{background-image:none;} .win10-open-iframe .layui-layer-ico{background-image:none;}
.win10-open-iframe .layui-layer-setwin { .win10-open-iframe .layui-layer-setwin {
position: absolute; position: absolute;
right: 0px; left: 0px;
top: 0px; top: 0px;
font-size: 0; font-size: 0;
height: 30px; height: 30px;
@ -852,7 +852,7 @@ body {
.win10-open-iframe .red,#win10 .red{background:#FF5722!important;} .win10-open-iframe .red,#win10 .red{background:#FF5722!important;}
.win10-open-iframe .dark,#win10 .dark{background:#2F4056!important;} .win10-open-iframe .dark,#win10 .dark{background:#2F4056!important;}
.win10-open-iframe .purple,#win10 .purple{background:#b074e6!important;} .win10-open-iframe .purple,#win10 .purple{background:#b074e6!important;}
@media screen and (max-width:768px){ @media screen and (max-width:767px){
#win10-menu{ #win10-menu{
width:100%; width:100%;
height: calc(100% - 31px); height: calc(100% - 31px);
@ -1015,7 +1015,7 @@ body {
##320px - 479px ##320px - 479px
*/ */
@media (min-width: 320px) and (max-width: 480px) { @media screen and (max-width: 480px) {
#footer{ #footer{
bottom:0px; bottom:0px;
} }

View File

@ -783,6 +783,10 @@ window.Win10 = {
Win10._settop(layero_opened); Win10._settop(layero_opened);
//重新定义菜单布局 //重新定义菜单布局
layero_opened.find('.layui-layer-setwin').prepend('<a class="win10-btn-refresh" index="' + index + '" href="#"></a>'); layero_opened.find('.layui-layer-setwin').prepend('<a class="win10-btn-refresh" index="' + index + '" href="#"></a>');
//菜单排列倒序
$(".layui-layer-setwin>a").each(function(){
$(this).prependTo(".layui-layer-setwin");
})
layero_opened.find('.layui-layer-setwin .layui-layer-max').click(function () { layero_opened.find('.layui-layer-setwin .layui-layer-max').click(function () {
setTimeout(function () { setTimeout(function () {
var height=layero_opened.css('height'); var height=layero_opened.css('height');