2
我有一個父閃光電影在其中的div。 我旋轉父div,所以我期望Flash電影也旋轉。CSS旋轉:閃光燈不旋轉
不幸的是,這不會發生。 Flash動畫沒有旋轉。
這是我的代碼
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.rotate
{
position: absolute;
top: 100px;
left: 250px;
width:800px;
height: 800px;
background-color: #f00;
-webkit-transform:rotate(-45deg);
-ms-transform:rotate(-45deg);
-moz-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
transform:rotate(-45deg);
}
</style>
</head>
<body>
<div class="rotate">
<h1>Youtube Flash Video:</h1>
<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/KMU0tzLwhbE?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KMU0tzLwhbE?version=3&hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
</body>
</html>
,這是它看起來像在瀏覽器中
你知道我怎麼能得到這個flash動畫與其父旋轉?
非常感謝! Vincent
我不知道閃光,但我已經看到了HTML5''
確實如此,但我必須使用來自Youtube頻道的視頻,而且我必須支持IE8和IE7。謝謝:) – Vinzcent
我以爲YouTube現在在做html5視頻?無論如何,在你的例子中的旋轉代碼也不會在IE7/8中工作,所以我認爲這對你來說不是問題。如果您可以將HTML5視頻用於較新的瀏覽器,並且您不會在IE7/8中旋轉,那麼您可以使用閃存作爲IE7/8的後備,並讓其他瀏覽器在視頻元素上進行旋轉。 – Spudley