I am new to HTML5, I was learning about the picture element which lets us specify different images based on media condition but is it possible to have more than one media condition? if yes, what is the syntax for that?
<picture>
<source media="(min-width: 650px)" srcset="img_food.jpg">
<source media="(min-width: 465px)" srcset="img_car.jpg">
<img src="img_girl.jpg" style="width:auto;">
</picture>
above code works, is it possible to put a condition on min-width as well as min-height?
something like this:
<picture>
<source media="(min-height: 700px min-width: 650px)" srcset="img_food.jpg">
<source media="(min-height: 500px min-width: 465px)" srcset="img_car.jpg">
<img src="img_girl.jpg" style="width:auto;">
</picture>
It doesn't work, I have looked through documentation, but can't find similar example
question from:
https://stackoverflow.com/questions/65840062/is-it-possible-to-have-more-than-one-media-condition-in-source-element-of-pictur 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…