Nneɛma a wɔde hyɛ mu
Yɛ video anaa slideshow embeds a ɛyɛ mmuae a egyina ɔwofo no trɛw so denam intrinsic ratio a wobɛma ayɛ scales wɔ device biara so no so.
Fa ho
Wɔde mmara di dwuma tẽẽ wɔ <iframe>
, <embed>
, <video>
, ne <object>
nneɛma ahorow ho; sɛ wopɛ sɛ wode aseni adesuakuw a ɛda adi pefee di dwuma .embed-responsive-item
bere a wopɛ sɛ wo ne styling no hyia ma su afoforo no.
Pro-Afotusɛm! Ɛho nhia sɛ wode ka frameborder="0"
wo <iframe>
s ho sɛnea yɛrebu saa asɛm no so ama wo no.
Nhwɛsoɔ
Wrap biara embed te sɛ an <iframe>
wɔ ɔwofo element ne .embed-responsive
ne afã ratio. The .embed-responsive-item
isn’t strictly required, nanso yɛhyɛ ho nkuran.
Afã horow a wɔde di dwuma
Wobetumi de modifier adesua ahorow ayɛ afã nsusuwii ahorow no sɛnea wɔpɛ. Sɛnea wɔahyɛ no, wɔde ratio adesua ahorow a edidi so yi ama:
Wɔ _variables.scss
, mu no, wubetumi asesa afã horow a wopɛ sɛ wode di dwuma no. Nsɛm a wɔahyehyɛ no ho nhwɛso $embed-responsive-aspect-ratios
ni: