模板:MirrorH/doc
![]() | 此頁面是Template:MirrorH的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
![]() | 此模板的文檔不存在、不全面或不能詳細描述其功能及/或其代碼中的參數。請幫助擴充並改進其文檔。 |
A shorthanded CSS code for horizontally mirroring elements inside style attribute. Use it inside the style=""
attribute of HTML elements like other CSS properties.
- Named Parameter
display=
allows to change the CSS display property. It defaults todisplay: inline-block;
When using this template to create the mirrored effect, editors should consider carefully about the accessibility.
說明 This template does not support IE8 or older browsers. IE8 requires cumbersome calculating of matrices. You may implement it into this template if you know how to translate the formula into Lua.
Examples
編輯The mirroring happens at the center of the whole object and its effective dimensions will retain the original values of the object as if unmirrored, so you may adjust the position and padding to avoid unwanted overlapping. Use the display=
parameter to further control positioning.
Syntax | Result |
---|---|
*Some mirrored characters:<br /><span style="{{mirrorH}}">A</span> B <span style="{{mirrorH}}">C</span> D
|
|
This is a placeholder image:
|
This is a placeholder image:
It is mirrored. |
See also:
編輯