Take a look at the script you've linked to. It's not creating an
<img>
; it's creating an
<iframe>
.
HTML iframe tag[
^]
CSS in the outer document has no effect on the styles applied to a document hosted in an
<iframe>
element.
The best you can do is use Bootstrap's
Responsive Embed[
^] classes to ensure that the
<iframe>
resizes to fit the available space. How the embedded document responds to that is beyond your control.
Also note that the script you've linked to adds
"px"
to the end of the
data-width
and
data-height
attributes, so specifying
"auto"
isn't going to work. If you look in your browser's developer tools, you'll probably see an error logged from the external script.