「模板:Image label」:修訂間差異
刪去的內容 新增的內容
Great Brightstar(談詑 | 貢獻) 標籤:行動版編輯 行動版網頁編輯 |
Great Brightstar(談詑 | 貢獻) 無編輯摘要 |
||
第2行: | 第2行: | ||
{{#if:{{{text-align|}}}|text-align:{{{text-align}}};}} |
{{#if:{{{text-align|}}}|text-align:{{{text-align}}};}} |
||
{{#if:{{{font-size|}}}|font-size:{{{font-size}}};}} |
{{#if:{{{font-size|}}}|font-size:{{{font-size}}};}} |
||
{{#if:{{{line-height|}}}|line-height:{{{line-height}}};}} |
|||
{{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}} |
{{#if:{{{background|}}}|background-color: rgba(255, 255, 255, 0.5); padding: 0 2px;}} |
||
{{#if:{{{color|}}}|color: {{{color|}}};}} |
{{#if:{{{color|}}}|color: {{{color|}}};}} |
到 2018年12月21日 (禮拜五) 15:53 嗰眼下改動
用法[編寫源代碼]
{{Image label|x= |y= |scale= |text= }}
x表示字符中間到左首嗰距离,y表示字符中間到上首嗰距离,x同到y嗰单位係象素,scale係放大率,text表示文字。
{{Image label begin|Example-zh.jpg}} {{Image label|x=0|y=0|text=●}} {{Image label|x=1|y=1|scale=100|text=★}} {{Image label|x=1|y=1|scale=50|text=Hello}} {{Image label end}} |