File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ The `noop-success` and `noop-error` loaders will return the current state to Laz
210
210
** Default for:** ` <picture> `
211
211
212
212
Loads ` <picture> ` elements and attach the sources.
213
- There are two ways you can prepare your audio and/or video tags.
213
+ There are two ways you can prepare your picture tags.
214
214
First way is to create all child elements from a single line:
215
215
``` HTML
216
216
<picture data-src =" default.jpg" data-srcset =" 1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" data-media =" (min-width: 600px)" data-type =" image/jpeg" />
@@ -219,12 +219,12 @@ First way is to create all child elements from a single line:
219
219
The other way is to add the sources like default, as child elements.
220
220
``` HTML
221
221
<picture >
222
- <data-src srcset =" 1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media =" (min-width: 600px)" type =" image/jpeg" >
223
- <data-img src =" default.jpg" >
222
+ <data-src srcset =" 1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media =" (min-width: 600px)" type =" image/jpeg" ></ data-src >
223
+ <data-img src =" default.jpg" ></ data-img >
224
224
</picture >
225
225
226
226
<picture data-src =" default.jpg" >
227
- <data-src srcset =" 1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media =" (min-width: 600px)" type =" image/jpeg" >
227
+ <data-src srcset =" 1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media =" (min-width: 600px)" type =" image/jpeg" ></ data-src >
228
228
</picture >
229
229
```
230
230
You can’t perform that action at this time.
0 commit comments