david
(David Taylor)
43
نعم، يمكننا فعل ذلك. هذا هو السطر الذي نبني فيه عنصر iframe:
ما هي بنية HTML الأكثر فائدة بالنسبة لك يا @awesomerobot؟ شيء مثل:
<div class='tweet-images'>
<div class='aspect-image-full-size' style='--aspect-ratio:#{width}/#{height};'/>
<iframe class='tweet-video' src='https://twitter.com/i/videos/blah' width='123' height='456' frameborder='0' allowfullscreen></iframe>
</div>
</div>
ثم يمكننا إعادة استخدام منطق aspect-image-full-size الذي نستخدمه للصور؟
إعجاب واحد (1)