Hey, je testais ce code. L'alerte affiche le résultat dans IE, mais pas dans Firefox:Comment faire pour que dojo.style apparaisse dans Firefox
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Get computed border width</title>
<script type="text/javascript" src="http://o.aolcdn.com/dojo/1.3.2/dojo/dojo.xd.js" djConfig="useXDomain:true">
</script>
<script>
function doOnLoad(){
var o = dojo.byId("myDiv");
alert(dojo.getComputedStyle(o).borderWidth);
}
</script>
</head>
<body onLoad="doOnLoad();">
<div style="border-width:10px" id="myDiv">
I am myDiv
</div>
</body>
</html>
Quelle est la raison pour laquelle l'alerte ne diplaying en FF?
Merci, je vais essayer. – Amen
Eh bien cela a fonctionné. Voici le code: