首页 > 其他 > 详细

直接在script里面换样式IE6,7,8不兼容

时间:2016-03-07 16:21:52      阅读:290      评论:0      收藏:0      [点我收藏+]
 1 <!DOCTYPE HTML>
 2 <html>
 3 <head>
 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 5 <title>无标题文档</title>
 6 </head>
 7 
 8 <body>
 9 
10 <input id="inp1" type="text" />
11 
12 <script>
13 var oInp = document.getElementById(inp1);
14 
15 oInp.onclick = function (){
16     
17     oInp.type = checkbox;
18     
19     // 咱们有仨位“祖宗”
20     /*
21         IE6 IE7 IE8
22     */
23 };
24 
25 /*
26     oDiv.style.float = ‘right‘;
27     
28     oDiv.style.styleFloat = ‘right‘;        // IE
29     oDiv.style.cssFloat = ‘left‘;            // 非IE
30     
31     IE(styleFloat)
32     非IE(cssFloat)
33     
34     <div class="right"></div>
35 */
36 </script>
37 
38 </body>
39 </html>

 

直接在script里面换样式IE6,7,8不兼容

原文:http://www.cnblogs.com/hduhdc/p/5250670.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!