[Sie-announce] SIEコード [1136] addRuleメソッドの代わりに、cssTextプロパティに切り替えた

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2009年 5月 6日 (水) 22:45:23 JST


Revision: 1136
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1136
Author:   dhrname
Date:     2009-05-06 22:45:23 +0900 (Wed, 06 May 2009)

Log Message:
-----------
addRuleメソッドの代わりに、cssTextプロパティに切り替えた

Modified Paths:
--------------
    branches/04x/047/sie.js

Modified: branches/04x/047/sie.js
===================================================================
--- branches/04x/047/sie.js	2009-05-06 13:09:51 UTC (rev 1135)
+++ branches/04x/047/sie.js	2009-05-06 13:45:23 UTC (rev 1136)
@@ -101,15 +101,11 @@
     document.namespaces.add("v","urn:schemas-microsoft-com:vml");
     document.namespaces.add("o","urn:schemas-microsoft-com:office:office");
     var st = document.createStyleSheet();
-    var vmlUrl = "behavior: url(#default#VML);display:inline-block;"; //inline-blockはIEのバグ対策
-    st.addRule("v\\:rect",vmlUrl);
-    st.addRule("v\\:image",vmlUrl);
-    st.addRule("v\\:fill",vmlUrl);
-    st.addRule("v\\:stroke",vmlUrl);
-    st.addRule("o\\:opacity2",vmlUrl);
-    st.addRule("dn\\:defs","display:none");
-    st.addRule("v\\:group", vmlUrl+ "position:relative;width:100%;height:100%;");
-    st.addRule("v\\:shape", vmlUrl+ "width:100%;height:100%;");
+    var vmlUrl = "behavior: url(#default#VML);display:inline-block;} "; //inline-blockはIEのバグ対策
+    st.cssText = "v\\:rect{" +vmlUrl+ "v\\:image{" +vmlUrl+ "v\\:fill{" +vmlUrl+ "v\\:stroke{" +vmlUrl+ "o\\:opacity2{" +vmlUrl
+      + "dn\\:defs{display:none}"
+      + "v\\:group{position:relative;width:100%;height:100%;" +vmlUrl
+      + "v\\:shape{width:100%;height:100%;" +vmlUrl;
   }
 }
 




Sie-announce メーリングリストの案内
Zurück zum Archiv-Index