gpt4 book ai didi

javascript - 用于 jquery 布局的自定义切换器

转载 作者:行者123 更新时间:2023-11-28 05:07:45 25 4
gpt4 key购买 nike

我正在使用 layout.jquery插入。我正在尝试为 Wast Pane 创建一个自定义切换器。如何创建旋转文本 div 作为切换器。请参阅下面的附图。 enter image description here

JSFIDDLE: https://jsfiddle.net/kap0e06s/3/

HTML:

<div class="myDiv" style="height:400px">
<div class="ui-layout-center">Center</div>
<div class="ui-layout-north">North</div>
<div class="ui-layout-south">South</div>
<div class="ui-layout-east">East</div>
<div class="ui-layout-west">West</div>
</div>

JS:

  $('.myDiv').layout({
resizeWhileDragging: true,
sizable: false,
animatePaneSizing: true,
fxSpeed: 'slow',
west__spacing_closed: 0,
west__spacing_open: 0,
north__spacing_closed: 0,
north__spacing_open: 0,

});

最佳答案

抱歉...无法正确创建 jsfiddle。这是修改后的代码:JS:

        // OUTER-LAYOUT
$('.myDiv').layout({
resizeWhileDragging: true,
sizable: false,
livePaneResizing: true,
animatePaneSizing: true,
fxSpeed: 'slow',
west__spacing_closed: 0,
west__spacing_open: 0,
north__spacing_closed: 0,
north__spacing_open: 0,

east__spacing_open: 50,

});

CSS:

        body {
background-color: white;
}

.ui-layout-center,
.ui-layout-north,
.ui-layout-south,
.ui-layout-east,
.ui-layout-west {
border: 0px;
}

.ui-layout-toggler{
background-image: url("http://placehold.it/50/ff9933/ffffff?text=Panel");

}

关于javascript - 用于 jquery 布局的自定义切换器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39751435/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com