Ukushumeka
Dala ividiyo ephendulayo noma ukushumeka kombukiso wesilayidi ngokusekelwe kububanzi bomzali ngokudala isilinganiso sangaphakathi esikala kunoma iyiphi idivayisi.
Mayelana
Imithetho isetshenziswa ngokuqondile ku- <iframe>
, <embed>
, <video>
, <object>
nezici; ngokuzikhethela sebenzisa isigaba sozalo esicacile .embed-responsive-item
uma ufuna ukufanisa isitayela sezinye izici.
I-Pro-Tip! Awudingi ukufaka phakathi frameborder="0"
kwakho <iframe>
njengoba sikuhoxisa lokho.
Isibonelo
Goqa noma yikuphi ukushumeka njengento <iframe>
engumzali kanye .embed-responsive
ne-aspect ratio. .embed-responsive-item
Akudingekile ngokuqinile, kodwa siyakukhuthaza .
Ukubukeka kwezilinganiso
Ukubukeka kwezilinganiso kungenziwa ngendlela oyifisayo ngamakilasi okulungisa. Ngokuzenzakalelayo amakilasi esilinganiso alandelayo anikeziwe:
Ngaphakathi _variables.scss
, ungashintsha i-aspect ratios ofuna ukuyisebenzisa. Nasi isibonelo $embed-responsive-aspect-ratios
sohlu: