Twitter Bootstrap Modal stop Youtube video

后端 未结 21 1682
小蘑菇
小蘑菇 2020-11-27 11:57

I\'m very new to javascript and trying to use Twitter bootstrap to get a good looking website up and running quickly. I know this has something to do with jquery, but I\'m

21条回答
  •  借酒劲吻你
    2020-11-27 12:24

    7 years after, we still need to solve this.

    We found a best way to fix it (Inspired by RobCalvert123 answer)

      jQuery(".modal-backdrop, .modal.open .close,.modal.open .btn").live("click", function() {  
             // Get iframe opened 
             var iframe_open = jQuery('.modal.open');     
             // Get src from opened iframe 
             var src = iframe_open.attr('src');
             // replace src by src to stop it that's the tips
            iframe_open.attr("src", src);
    });
    

提交回复
热议问题