File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -30640,17 +30640,15 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...</code
30640
30640
</figure></code></pre>
30641
30641
30642
30642
<p>Alternatively, the <code data-x="attr-dim-width">width</code> and <code
30643
- data-x="attr-dim-height">height</code> attributes can be used to provide the width and height for
30644
- legacy user agents, using CSS just for the user agents that support <code>picture</code> :</p>
30643
+ data-x="attr-dim-height">height</code> attributes can be used on the <code>source</code> and
30644
+ <code>img</code> elements to provide the width and height :</p>
30645
30645
30646
- <pre><code class="html"><style media="(max-width: 600px)">
30647
- #a { width: 100px; height: 100px; }
30648
- </style>
30646
+ <pre><code class="html">
30649
30647
<figure>
30650
30648
<picture>
30651
- <source srcset="a-square.png" media="(max-width: 600px)">
30649
+ <source srcset="a-square.png" media="(max-width: 600px)" width="100" height="100" >
30652
30650
<img src="a-rectangle.png" width="300" height="150"
30653
- alt="Barney Frank wears a suit and glasses." id="a" >
30651
+ alt="Barney Frank wears a suit and glasses.">
30654
30652
</picture>
30655
30653
<figcaption>Barney Frank, 2011</figcaption>
30656
30654
</figure></code></pre>
You can’t perform that action at this time.
0 commit comments