舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模板:外链图片:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
雨音伴嵩留言 | 贡献
无编辑摘要
雨音伴嵩留言 | 贡献
删去多余空行
第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的版本

<img src="{{{地址}}}" width="{{{宽度}}}px" style="position:relative;left:{{{位置}}}%"/>

本模板用来放置外链图片

使用方法

{{外链图片|地址=|宽度=|位置=}}

【地址】填入图片地址 【宽度】填入需要显示图片的宽度(像素) 【位置】填入图片的对齐方式或是精确位置——“右”为靠右,“中”为居中,填入数字0~100为从左至右浮动(负数或超过100会使图片超出界面),位置留空则默认图片靠左。

范例

宽度50,位置右
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=50|位置=右}}

<img src="i_f25.png" width="50px" style="float:right;"/>

宽度50,位置80
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=50|位置=80}}

<img src="i_f25.png" width="50px" style="position:relative;left:80%"/>

宽度200,位置50
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=50}}

<img src="i_f25.png" width="200px" style="position:relative;left:50%"/>

宽度200,位置中
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=中}}
<img src="i_f25.png" width="200px"/>
宽度100,位置留空
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=100|位置=}}

<img src="i_f25.png" width="100px" style="position:relative;left:%"/>






<img src="i_f25.png" width="50px" style="float:left;"/> <img src="i_f25.png" width="50px" style="float:right;"/>