How to implement a responsive Youtube embed iframe with Twitter Bootstrap?
问题 Currently I'm embedding Youtube videos with the following HAML code in a Twitter Bootstrap based site: .row .span12 %iframe.span11{ :height => "720", :frameborder => "0", :allowfullscreen => nil, :src => v.video_url } Unfortunately, this doesn't respond well when resizing the browser or on mobile devices because of the static height. What would be a better (more dynamic and responsive) way to implement this embedded iframe for Youtube? 回答1: Try this "Responsive video CSS", it works perfect