<HTML xmlns:v>
<STYLE>
v\:*{behavior:url(#default#VML);}
</STYLE>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<meta charset=utf-8 /><script> $(function(){
$('#vr').click(function(){
RotSphere();
})
})
//alert(ve.rotationangle); function RotSphere()
{
var a = document.getElementById("ve");
alert($("#ve").attr("rotationangle")+" "+ve.rotationangle+" "+a.rotationangle);
}</script>
<BODY> <v:rect id='vr' style="z-index:4;LEFT:500;WIDTH:297;POSITION:absolute;TOP:400;HEIGHT:364"
filled="t">
<v:extrusion id='ve' on="t" backdepth="15pt" color="navy" diffusity="0.1" rotationangle="1,1"></v:extrusion>
<v:fill src="D:\Documents\Pictures\psueCANCZ451.jpg" type="frame" opacity=".7" />
</v:rect>
///运行结果弹出 undefined 1.1 1.1
很奇怪。$("#ve").attr("rotationangle") 这里得不到值。不知道那里的错误,写了个简单的测试<!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>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script>
$(function(){
alert($("#aid")+" "+$("#d")); alert($("#aid").attr("name")+" "+$("#d").attr("name"));
})
</script>
</head>
<body>
<div id='d' name='div' >
<a:div id='aid' name='adiv' />
</div>
</body>
</html>这里就没问题。不知道$("#ve").attr("rotationangle") 为什么出不来值!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货