模板:外链图片
<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="
" width="50px" style="float:right"/>
| 宽度50,位置80 |
|---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=50|位置=80}} |
<img src="
" width="50px" style="position:relative;left:80%"/>
| 宽度200,位置50 |
|---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=50}} |
<img src="
" width="200px" style="position:relative;left:50%"/>
| 宽度200,位置中 |
|---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=200|位置=中}} |
<img src=" " width="200px"/> |
| 宽度100,位置留空 |
|---|
{{外链图片|地址=http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png|宽度=100|位置=}} |
<img src="
" width="100px" style="position:relative;left:%"/>