0

我在使用 chrome 时遇到问题。下面的代码在 safari 中运行良好,但是当我在 chrome 中单击它时,屏幕变白。有什么想法吗?

      <div class="CollapsiblePanelContent" style="text-align:center"><div style="padding:15px;">
      <!--youtube-->
      <?php
      $url = http://www.youtube.com/watch?v=J57IcTH0DQs;
        preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches);
        $id = $matches[1];

        $width = '480';
        $height = '270';
        echo '<object width="' . $width . '" height="' . $height . '"><param name="movie" value="http://www.youtube.com/v/' .   
        $id . '?version=3&autoplay=0"></param><param name="allowFullScreen" value="true"></param><param 
        name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' . $id . 
        '?version=3&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" 
        width="' . $width . '" height="' . $height . '"></embed></object>';

    ?>
</div>

      </div>
4

0 回答 0