Template:背景图片:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
(test)
无编辑摘要
 
第13行: 第13行:
  style="position:fixed; top:0; width:100%; height:100%; object-fit:cover; object-position:{{{position|center center}}}; {{#var:背景图片.animate}}"
  style="position:fixed; top:0; width:100%; height:100%; object-fit:cover; object-position:{{{position|center center}}}; {{#var:背景图片.animate}}"
  {{#if:{{#var:背景图片.isInside}}|{{#vardefine:背景图片.maxWidth|{{#invoke:fileInfo|main|{{{1|{{{url|}}}}}}|width}}}}
  {{#if:{{#var:背景图片.isInside}}|{{#vardefine:背景图片.maxWidth|{{#invoke:fileInfo|main|{{{1|{{{url|}}}}}}|width}}}}
    srcset="{{#invoke:loop|main|times=1|{{array|get|widths|count}}|do=<nowiki> 
    data-srcset="{{#invoke:loop|main|times=1|{{array|get|widths|count}}|do=<nowiki> 
      {{#ifexpr:{{array|get|widths|{{#var:times}}}} < {{#var:背景图片.maxWidth}}|
      {{#ifexpr:{{array|get|widths|{{#var:times}}}} < {{#var:背景图片.maxWidth}}|
       {{filepath:{{{1|{{{url|}}}}}}|{{array|get|widths|{{#var:times}}}}}} {{array|get|widths|{{#var:times}}}}w,
       {{filepath:{{{1|{{{url|}}}}}}|{{array|get|widths|{{#var:times}}}}}} {{array|get|widths|{{#var:times}}}}w,

2022年12月4日 (日) 16:24的最新版本