模板:外链图片:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
小 (删去多余空行) |
||
第5行: | 第5行: | ||
|#default=<img src="{{{地址}}}" width="{{{宽度}}}px" style="position:relative;left:{{{位置}}}%"/> | |#default=<img src="{{{地址}}}" width="{{{宽度}}}px" style="position:relative;left:{{{位置}}}%"/> | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
本模板用来放置外链图片 | 本模板用来放置外链图片 |
2016年4月27日 (三) 14:51的版本
本模板用来放置外链图片
使用方法[编辑源代码]
{{外链图片|地址=|宽度=|位置=}}
【地址】填入图片地址 【宽度】填入需要显示图片的宽度(像素) 【位置】填入图片的对齐方式或是精确位置——“右”为靠右,“中”为居中,填入数字0~100为从左至右浮动(负数或超过100会使图片超出界面),位置留空则默认图片靠左。
范例[编辑源代码]
宽度50,位置右 |
---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=50|位置=右}} |
宽度50,位置80 |
---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=50|位置=80}} |
宽度200,位置50 |
---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=50}} |
宽度200,位置中 |
---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=中}} |
宽度100,位置留空 |
---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=100|位置=}} |