模板:Sliding Doors/doc
跳到导航
跳到搜索
滑动门效果,电脑端为鼠标滑过时打开,而移动端是点击后打开。
用法
{{Sliding Doors |width= |float= |lgstyle= |lg= |rgstyle= |rg= |content= }}
参数
- 显示内容
- width= ,整个滑动门的宽度
- float= ,浮动效果,可填left、right等,默认为不浮动。
- lgstyle= ,左侧滑动门的样式
- rgstyle= ,右侧滑动门的样式
- lg= ,左侧滑动门的内容
- rg= ,右侧滑动门的内容
- content= ,滑动门背后的内容。
例子
{{Sliding Doors |width=320px |content=<center>[[File:58984528 p1.png|300px]]</center> }}
例子
{{Sliding Doors |width=800px |float=left |lgstyle=background: -prefix-linear-gradient(left, #ebf5ff, #b1d8ff, #89c4ff);background: linear-gradient(to right, #ebf5ff, #b1d8ff, #89c4ff) |rgstyle=background: -prefix-linear-gradient(left, #89c4ff, #b1d8ff, #ebf5ff);background: linear-gradient(to right, #89c4ff, #b1d8ff, #ebf5ff) |content=[[File:39299502_p0_master1200.jpg|400px]][[File:39299502_p1_master1200.jpg|400px]]<br/><center>しゃび的作品</center> }}
例子
{{Sliding Doors |width=300px |float=left |lgstyle=background: radial-gradient(circle farthest-corner at center center , #FFE700 10%, #FFC500 50%, #FFA500) |rgstyle=background: radial-gradient(circle farthest-corner at center center , #FFE700 10%, #FFC500 50%, #FFA500) |content=[[File:37740510_p0.jpg|300px]]<br/><center>PID=37740510</center> }}