Template:Headline:修订间差异
跳转到导航
跳转到搜索
imported>我局得事你 无编辑摘要 |
imported>我局得事你 无编辑摘要 |
||
| 第12行: | 第12行: | ||
width: 100%; | width: 100%; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | |||
.esu-headline-text overlay{ | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); /* 兼容性:野蛮IE不支持calc */ | |||
transform: translate(calc(-50% + 0.5em), -50%); | |||
} | } | ||
}} | }} | ||
<div style="width: 100%; position: relative;"> | <div style="width: 100%; position: relative;"> | ||
<center class="esu-headline-image">{{{image|}}}</center> | <center class="esu-headline-image">{{{image|}}}</center> | ||
<center class="esu-headline-text">{{{1}}}</center> | <center class="esu-headline-text {{#if:{{{overlay|}}}|<!--empty-->|overlay}}}">{{{1}}}</center> | ||
</div><noinclude> | </div><noinclude> | ||
== 用途 == | == 用途 == | ||
2019年1月6日 (日) 09:13的版本
用途
大字报
参数
1
文字
image
可选图片
border
图片边框粗细,默认为5px,填写0可关闭
overlay
文字覆盖图片,填写no可关闭
示例
{{headline
|image=[[File:BBHP.jpg|500px]]
|医院深造<br>深度残疾
|border=0
}}
{{headline
|image=[[File:QQ图片20151027225832.jpg|死的好惨啊]]
|未确认死妈快感
|overlay=no
}}
{{headline
|image=[[File:奶子精.png|1000px|忽悠大革命]]
|'''用鲜血和生命保卫大忽悠'''
}}

