Widget:Carousel:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly> | ||
<style> | <style> | ||
.w-c {position:relative; width:100%; height:<!--{$height|default:'400px'}-->; overflow:hidden; background:#222;} | .w-c {position:relative; width:<!--{$width|default:'100%'}-->; height:<!--{$height|default:'400px'}-->; overflow:hidden; background:#222; margin:10px auto;} | ||
.w-s {display:none; width:100%; height:100%;} | .w-s {display:none; width:100%; height:100%;} | ||
.w-s img {width:100%; height:100%; object-fit:cover;} | .w-s img {width:100%; height:100%; object-fit:cover;} | ||
| 第32行: | 第32行: | ||
</script> | </script> | ||
</includeonly> | </includeonly> | ||
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc|content= | ||
用于[[首页/活动轮换图]]的微件。 | |||
==用法== | |||
<pre> | |||
{{#widget:Carousel | |||
|width=800px | |||
|height=300px | |||
|img1=图1.jpg |link1=页面1 | |||
|img2=图2.jpg |link2=页面2 | |||
}} | |||
</pre> | |||
}}</noinclude> | |||