Ɛmbad dɛn
Krio rispɔnsiv vidio ɔ slayd sho ɛmbad bay di wit we di mama ɔ papa gɛt bay we yu mek wan intrinsik rɛtɛshɔn we de skel pan ɛni divays.
Bɔt
Dɛn kin yuz lɔ dɛn dairekt wan fɔ <iframe>
, <embed>
, <video>
, ɛn <object>
ɛlimɛnt dɛn; opshɔnal yuz wan ɛksplisit dɛsɛndant klas .embed-responsive-item
we yu want fɔ mach di stayl fɔ ɔda atribyut dɛn.
Pro-Tip fɔ di wan dɛn! Yu nɔ nid fɔ inklud frameborder="0"
insay yu <iframe>
s as wi de ɔvalayz dat fɔ yu.
Ɛgzampul
Rap ɛni ɛmbad lɛk wan <iframe>
insay wan mama ɛn papa ɛlimɛnt wit .embed-responsive
ɛn wan aspek rɛsɛshɔn. Di .embed-responsive-item
nɔto strikt wan, bɔt wi de ɛnkɔrej am.
Aspek rɛsɛshɔn dɛn
Aspek ratios kin kɔstɔmayz wit modifya klas dɛn. Bay difɔlt dɛn de gi di fɔs ratio klas dɛn:
Insay _variables.scss
, yu kin chenj di aspek ratio dɛn we yu want fɔ yuz. Na dis na wan ɛgzampul bɔt di $embed-responsive-aspect-ratios
list: