Agbanye
Mepụta vidiyo na-anabata ma ọ bụ ihe ngosi mmịfe dabere na obosara nke nne na nna site na ịmepụta oke dị n'ime nke na-adaba na ngwaọrụ ọ bụla.
Ihe gbasara
A na-etinye iwu ozugbo na <iframe>
, <embed>
, <video>
, na <object>
ọcha; na nhọrọ jiri klaasị nke pụtara ìhè .embed-responsive-item
mgbe ịchọrọ dakọtara na nhazi maka njirimara ndị ọzọ.
Pro-Tip! Ịkwesighi itinye frameborder="0"
na <iframe>
s gị ka anyị na-ewepụ nke ahụ maka gị.
Ọmụmaatụ
Kechie ihe ọ bụla agbakwunyere dị ka ihe <iframe>
n'ime mmewere nne na nna yana .embed-responsive
akụkụ akụkụ. Achọghị .embed-responsive-item
ya nke ọma, mana anyị na-akwado ya.
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>
Akụkụ akụkụ
Enwere ike ịhazi oke akụkụ site na iji klas mgbanwe. Site na ndabara, a na-enye klaasị oke ndị a:
<!-- 21:9 aspect ratio -->
<div class="embed-responsive embed-responsive-21by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 1:1 aspect ratio -->
<div class="embed-responsive embed-responsive-1by1">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
N'ime _variables.scss
, ị nwere ike ịgbanwe akụkụ nke ịchọrọ iji. Nke a bụ ọmụmaatụ nke $embed-responsive-aspect-ratios
ndepụta a:
$embed-responsive-aspect-ratios: (
(21 9),
(16 9),
(4 3),
(1 1)
) !default;