模板:Object:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第2行: | 第2行: | ||
| inline = inline-block | | inline = inline-block | ||
| block = block | | block = block | ||
| #default = inline-block}};width: {{{2|400}}}px; height: {{{3|400}}}px;"><object class="template-object-url" style="width: 100%;height: 100%;" data="{{{1|缺少图片地址}}}"></object></span></includeonly> | | #default = inline-block}};width: {{{2|400}}}px; height: {{{3|400}}}px;"><html<noinclude></noinclude>><object class="template-object-url" style="width: 100%;height: 100%;" data="{{{1|缺少图片地址}}}"></object></html<noinclude></noinclude>></span></includeonly> | ||
2022年8月12日 (五) 20:17的版本
这个文档嵌入自模板:Object/doc
。
Usage
- {{object|1|2|3|4}}
参数:
- 1: object url 地址
- 2: object 宽度
- 3: object 高度
- 4: object 是块元素还是行元素,默认值 block,可选值 block、inline、或缺省。
用于包裹 object 标签。
Examples
示例
测试文本测试文本测试文本测试文本测试文本{{object|https://iframe.kangkk.cn/static/svg/2022/2022-8-13-盒模型.drawio.svg|200|300|inline}}测试文本测试文本测试文本测试文本测试文本
//
测试文本测试文本测试文本测试文本测试文本{{object|https://iframe.kangkk.cn/static/svg/2022/2022-8-13-盒模型.drawio.svg|200|300|block}}测试文本测试文本测试文本测试文本测试文本
测试文本测试文本测试文本测试文本测试文本<html><object class="template-object-url" style="width: 100%;height: 100%;" data="https://iframe.kangkk.cn/static/svg/2022/2022-8-13-盒模型.drawio.svg"></object></html>测试文本测试文本测试文本测试文本测试文本
//
测试文本测试文本测试文本测试文本测试文本<html><object class="template-object-url" style="width: 100%;height: 100%;" data="https://iframe.kangkk.cn/static/svg/2022/2022-8-13-盒模型.drawio.svg"></object></html>测试文本测试文本测试文本测试文本测试文本