一个可关闭独立窗口,使用mw-collapsible实现关闭效果。
名字(name 第一个匿名参数):指定折叠名。内容(content 第二个匿名参数):内容。标题(title):标题文本。标题高(title-height):标题高度。显示(show):默认显示,设置为false默认不显示。显示标题栏(title-show):默认存在标题栏,设置为false禁用标题栏。位置(position):设置为absolute则浮于其他内容上。设置为fixed,显示位置相对屏幕,即父对象为屏幕。宽(width):窗口宽度。高(height):窗口高度。层级(z-index):窗口z序,即覆盖顺序。停靠方向(direction):可选center,left,right,top,bottom。指示窗口停靠到容器的边缘。距离(distance):在停靠方向上距左/上方的距离,如果设定为负则为距右/下的距离。间距(interval):距离停靠边缘的位移。背景颜色(background-color):窗口内容背景颜色。默认为aliceblue。框架样式(border-style):默认为ridge。框架颜色(border-color):默认为green。框架宽度(border-width):默认为4px。关闭按钮背景颜色(close-button-color):默认为darkred。关闭按钮前景颜色(close-button-background-color):默认为white。{{窗口|name1|这是内容}}
{{窗口|name2-1|
{{窗口|name2-2|子窗口1}}
{{窗口|name2-2|子窗口2}}
}}
{{窗口|停靠方向=top|宽=100%|位置=fixed|
name3|我在上面
}}
{{窗口|位置=fixed|停靠方向=left|
name4|您的xp极度异常
}}
{{折叠标签/高级|点我}}
{{窗口|位置=fixed|显示=false|停靠方向=top|间距=50%|距离=50%|
点我|你需要关闭它
}}
{{窗口|width=auto|height=500px|显示标题栏=false|窗口|
{{窗口|窗口1|title=窗口1|位置=absolute|停靠方向=bottom|width=100%|height=100%|子窗口1}}
{{窗口|窗口2|title=窗口2|位置=absolute|停靠方向=bottom|width=100%|height=300px|子窗口2}}
{{窗口|窗口3|title=窗口3|位置=absolute|停靠方向=bottom|width=70%|子窗口3}}
}}
{{菜单栏|
#[[窗口1]]
#[[窗口2]]
#[[窗口3]]
}}