HTMLpoi读取docx保留样式不了JQ样式

博客分类:
一般在Jquery中会用下面的方式来添加新标签:
var obj = "&fieldset data-role='controlgroup' data-type='vertical' data-role='fieldcontain'&
&input id='menu0" type='checkbox'/&&label for='menu0'& 复选框 &/label& &/fieldset&";
//按个人要求拼接标签$("#所在标签id").append(obj);
// 用append 方式添加拼接的标签
$("#所在标签id")..listview("refresh");
//在使用'ul'标签时才使用,作用:刷新列表
$("#所在标签id").trigger("create");
//重点:这名的意思是重新加载所在标签的样式。非常有用的一句话,不加这一句你动态append的标签将丢失Css样式
浏览 18220
xiaoyaocao
浏览: 197228 次
来自: 成都
谢谢!!!
LZ也是醉了,明明是代码没编译成功,也把这个问题牵进来
你好,如果将spring mvc的工程打成jar包,你是如何运 ...
请问href方式加载页面的话,如果加载有异常,如何捕获。  在chrome中审查元素,发现其增加了很多没有直接写在页面上的标签和样式。页面标签首先经过jquery.mobile-1.4.5.min.js的处理,添加了许多标签,然后再用css布局
1.将jquery.mobile-1.4.5.min.js处理后的样式动态添加,即将chrome中审查元素得到的完整元素及样式复制下来,动态添加
缺点:代码很多,而且加了很多奇怪样式和各种标签
各类标签的刷新1.Textarea fields$('body').prepend('&textarea id="myTextArea"&&/textarea&');$('#myTextArea').textinput();-------------------------------------------------------------2.Text input fields$('body').prepend('&input type="text" id="myTextField" /&');$('#myTextField').textinput();-------------------------------------------------------------3.Buttons$('body').append('&a href="" data-theme="e" id="myNewButton"&testing&/a&'); $('#myNewButton').button();-------------------------------------------------------------4.Combobox or select dropdowns&label for="sCountry"&Country:&/label&&select name="sCountry" id="sCountry"&&&&&&option value=""&Where You Live:&/option&&&&&&option value="ad"&Andorra&/option&&&&&&option value="ae"&United Arab Emirates&/option&&/select&var myselect = $("#sCountry");myselect[0].selectedIndex = 3;myselect.selectmenu('refresh');-------------------------------------------------------------5.Listviews&ul id="myList" data-role="listview" data-inset="true"&&&&&&li&Acura&/li&&&&&&li&Audi&/li&&&&&&li&BMW&/li&&/ul&$('#mylist').listview('refresh');-------------------------------------------------------------6.Slider control&div data-role="fieldcontain"&&&&&&label for="slider-2"&Input slider:&/label&&&&&&input type="range" id="slider-2" value="25" min="0" max="100" /&&/div&$('#slider-2').val(80).slider('refresh');-------------------------------------------------------------7.Toggle switch&div data-role="fieldcontain"&&&&&&label for="toggle"&Flip switch:&/label&&&&&&select name="toggle" id="toggle" data-role="slider"&&&&&&&&&&option value="off"&Off&/option&&&&&&&&&&option value="on"&On&/option&&&&&&/select&&/div&var myswitch = $("#toggle");myswitch[0].selectedIndex = 1;myswitch .slider("refresh");-------------------------------------------------------------8.Radio buttons&div data-role="fieldcontain"&&&&&&fieldset data-role="controlgroup" data-type="horizontal"&&&&&&&&&&legend&Layout view:&/legend&&&&&&&&&&input type="radio" name="radio-view" value="list" /&&&&&&&&&&label for="radio-view-a"&List&/label&&&&&&&&&&input type="radio" name="radio-view" value="grid" /&&&&&&&&&&label for="radio-view-b"&Grid&/label&&&&&&&&&&input type="radio" name="radio-view" value="gallery" /&&&&&&&&&&label for="radio-view-c"&Gallery&/label&&&&&&/fieldset&&/div&$("input[value=grid]").attr('checked',true).checkboxradio('refresh');-------------------------------------------------------------9.Checkboxes&div data-role="fieldcontain"&&&&&&fieldset data-role="controlgroup"&&&&&&&&&&legend&Agree to the terms:&/legend&&&&&&&&&&input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" /&&&&&&&&&&label for="checkbox-1"&I agree&/label&&&&&&/fieldset&&/div&$('#checkbox-1').attr('checked',true).checkboxradio('refresh');-------------------------------------------------------------10.controlgroup&&&&&&&&&&&&$("#fieldNextNode").trigger('create');//发生cannot call methods on checkboxradio pri attempted to call method 'refresh'&&错误时$("#fieldNextNode").controlgroup("refresh");
参考资料:
http://blog.csdn.net/lgd5979/article/details/7161339
阅读(...) 评论()load()方法---------jQuery动态加载html
我的图书馆
load()方法---------jQuery动态加载html
jquery代码$("#div").load("test.html");&&& test.html & ----------------被加载页面(有&HTML&&HEAD&&META&&BODY&等的完整页面 ) $("#div")所在页面----------------------------容器页面(也是完整页面) 1、被加载页面 & & &可以使用 & & 自己页面的CSS样式2、被加载页面 & & &可以使用 & & 容器页面的CSS样式,当自己页面css样式和容器页面的CSS样式冲突时,自己页面的css样式起作用!3、被加载页面 能使用 & & 自己页面的javascript4、被加载页面 能使用 & & 容器页面的javascript,当自己页面javascript和容器页面的javascript冲突时,都起作用,形成“冒泡”;5、 & & 容器页面的head里面的 & &meta http-equiv="Content-Type" content="text/ charset=UTF-8"& ) & & 对 & & &被加载页面 & & &无效6、 被加载页面的head里面的 & &meta http-equiv="Content-Type" content="text/ charset=UTF-8"& ) & & 对 & & &被加载页面 & & &无效7、被加载页面的字符编码只能是UTF-8jquery代码load() 方法允许加载html文档的一部分,语法如下:$("#div").load("test.html #content"); &test.html & &#content(中间有一个空格) &----------------被加载页面的id是content的部分加载html文档的一部分的情况有所不同(自己页面的css样式和javascript都丢失,能使用容器页面的css样式和javascript),不过都是按照下面做法实现的,可以根据 & 把html文件加载到容器页面形成的文档情况 & 而定w3cshcool说load() 方法是这样实现的:jQuery 使用浏览器的 .innerHTML 属性来解析被取回的文档,并把它插入当前文档。在此过程中,浏览器常会从文档中过滤掉元素,比如 &html&, &title& 或 &head& 元素。结果是,由 .load() 取回的元素可能与由浏览器直接取回的文档不完全相同。注释:由于浏览器安全方面的限制,大多数 "Ajax" 请求遵守同源策略;请求无法从不同的域、子域或协议成功地取回数据。
TA的最新馆藏[转]&
喜欢该文的人也喜欢jQuery html()方法使用不了无法显示内容的问题
投稿:whsnow
字体:[ ] 类型:转载 时间:
jquery中的html方法使用不了,只能用完最基本的innerHTML把内容展示出来
$("#content").html(data.content);
$("#content")[0].innerHTML = data.
今天遇到jquery中的html方法使用不了,只能用完最基本的innerHTML把内容展示出来。具体原因还没找到,肯定跟内容有关,展示不了的html放上来供以后检查原因,是我收到csdn的一封邮件。
&!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&
&html&&head&&meta http-equiv="Content-Type" content="text/ charset=gb2312"&
&title&智能硬件周刊 - 第4期&/title&
&style type="text/css"&
color: #333;
text-decoration:
color: #c00;
span.hot {
font-weight:
.button * {
vertical-align:
&/style&&/head&
&table align="center" border="0" cellpadding="0" cellspacing="0" width="760"&
&td width="540"&&a href="http://newsletter.csdn.net/m/news/newsletter/index/13" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank"&&img style="cursor:border: 0" alt="" src="/article//539917aecc84c.jpg"&&/a&&/td&
&td width="30"&&/td&
&td width="190" style="font-size: 12 font-family: Microsoft Y line-height: 40 padding-right: 3px" align="right"& 第
&span style="color: #c00; text-decoration:"&4&/span&期&/td&
&td colspan="3" bgcolor="#cc0000" height="5"&&/td&
&td width="540" valign="top"&
&!-- 资讯速递 --&
&h1 style="font-family: Microsoft Y font-size: 20 margin: 20px 0 0 0; font-weight: border-bottom: solid 1px #d1d1d1; color: #c00; padding-bottom: 5px"&&img style="margin-right: 5px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.gif"&资讯速递
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&img src="http://newsletter.csdn.net/uploadfile/logoimg/image/_67948_logo.jpg" border="0" style="float:padding: 15px 10px 15px 0;width: 160height: 110"&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="http://www.csdn.net/article//2820881" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&智能硬件生态未成,打造平台为时尚早?&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin: 0"&
当前的智能硬件产业发展是由创业公司探路,巨头纷纷跟进打造开放平台。但智能硬件市场至今无标杆性产品、开发者及应用前景不明、尚未找到用户“痛点”等特征表明市场仍处于萌芽阶段,打造平台为时尚早。&a href="http://www.csdn.net/article//2820881" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="http://download.csdn.net/detail/zhaifangqing/7604351" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&【干货分享】2014深圳Maker Faire“创客与商业”论坛演讲PDF&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin: 0"&
日至7日,深圳举办Featured级别Maker Faire。在“创客与商业”论坛中,Atmel COO、点名时间CEO、电子新我CEO、Seeed创始人、HAXLR8R创始人、前富士康CEO等人,从Maker文化、众筹、孵化、创业、产品化等角度,分享了所观察、体会,并总结出的故事与经验。&a href="http://download.csdn.net/detail/zhaifangqing/7604351" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="http://www.csdn.net/article//-best-AR-App" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&增强现实:10大AR应用窥探移动未来&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin: 0"&
智能手机性能的提升,以及可穿戴设备,尤其是Google Glass的出现,让AR技术再次升温,也让我们在今年看到了不少基于AR技术开发的新应用。本文推荐10款优秀AR应用,其中有不少开发商还来自于传统行业。&a href="http://www.csdn.net/article//-best-AR-App" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="http://www.csdn.net/article//2820848-lenovo-3-hardware" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&物联网多了把“新板凳” 联想推三款智能硬件&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin: 0"&
联想推出“中国最靠谱的互联网创业平台”――联想NBD(New BusinessDevelopment,昵称“新板凳”)。同时,发布了该平台“孵化”的首批三个创新产品:智能眼镜、智能空气净化器和智能路由器。&a href="http://www.csdn.net/article//2820848-lenovo-3-hardware" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&!-- 新锐产品 --&
&h1 style="font-family: Microsoft Y font-size: 20 margin: 20px 0 0 0; font-weight: border-bottom: solid 1px #d1d1d1; color: #c00; padding-bottom: 5px"&&img style="margin-right: 5px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.gif"&新锐产品
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&img src="http://newsletter.csdn.net/uploadfile/logoimg/image/_55898_logo.jpg" border="0" style="float:padding: 15px 10px 15px 0;width: 160height: 110"&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="/projects//table-air?ref=category" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&设计最优美的智能空气净化器 Table Air&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0"&
这是一款来自深圳的空气净化器,允许用户通过手机进行控制。在每天早晨它会自动检测出空气质量。这款空气净化器的设计与众不同,不像传统的设备那样蠢笨,外观更加简洁。&a href="/projects//table-air?ref=category" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&img src="http://newsletter.csdn.net/uploadfile/logoimg/image/_10579_logo.jpg" border="0" style="float:padding: 15px 10px 15px 0;width: 160height: 110"&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="/projects//airfy-beacon-imagination-meets-smart-home-automati?ref=category" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&基于iBeacon的智能家居中心 airfy Beacon&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0"&
苹果在去年就发布了iBeacon,最初它给人们指出的产品方向更偏向于商业,例如在商场、店铺中使用,而这款airfy则是基于该技术的家居产品。它可以作为手机与NEST、IFTTT、hue智能灯等设备的中继站,不同的是,用户只需要走近airfy,就能触发一些功能,比如让灯光变亮、打开音响等。&a href="/projects//airfy-beacon-imagination-meets-smart-home-automati?ref=category" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&dl style="padding: 6 0 0 0;margin:0clear:"&
&!-- 判断图片是否存在 --&
&img src="http://newsletter.csdn.net/uploadfile/logoimg/image/_43505_logo.jpg" border="0" style="float:padding: 15px 10px 15px 0;width: 160height: 110"&
&dt style="color: #333; font-size: 16 font-family: Microsoft Y margin: 10px 0 3px 0; line-height: 26"&
&a style="text-align: color: #333; font-size: 16 font-weight: text-decoration: none" href="/" rel="external nofollow" rel="external nofollow" target="_blank"&
&span class="hot"&可续航一年的智能手环 Bong II&/span&&/a&
&dd style="color: #666666; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0"&
bong梅开二度,在上周发布了第二代手环,售价99元。不过最让人感到兴奋的不是价格,而是可以续航一年的持久力,这是目前可穿戴产品中不多见的。当然,除了续航,bong在功能上也做出了新的改进与创新。&a href="/" rel="external nofollow" rel="external nofollow" target="_blank" style="color: #c00; font-size: 13 font-family: 宋体; line-height: 22 margin-left: 0padding-bottom:20"&[阅读原文] &/a&
&!--dl style="clear:"&
&dt style="color: #333; font-size: 14 font-family: Microsoft Y margin-top: 5 line-height: 22px"&
&img style="margin-right: 10px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.png"&
&a href="http://club.csdn.net/module/club/cto/bbs/7468" rel="external nofollow" rel="external nofollow" style="text-align: color: #333; font-size: 14 text-decoration: none" target="_blank"&被微软正版部门盯上被微软正版部门盯上......&/a&
&dt style="color: #333; font-size: 14 font-family: Microsoft Y margin-top: 5 line-height: 22px"&
&img style="margin-right: 10px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.png"&
&a href="http://club.csdn.net/module/club/cto/bbs/7468" rel="external nofollow" rel="external nofollow" style="text-align: color: #333; font-size: 14 text-decoration: none" target="_blank"&被微软正版部门盯上......&/a&
&dt style="color: #333; font-size: 14 font-family: Microsoft Y margin-top: 5 line-height: 22px"&
&img style="margin-right: 10px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.png"&
&a href="http://club.csdn.net/module/club/cto/bbs/7464" rel="external nofollow" style="text-align: color: #333; font-size: 14 text-decoration: none" target="_blank"&迷失方向,请各位朋友、前辈指导下&/a&
&dt style="color: #333; font-size: 14 font-family: Microsoft Y margin-top: 5 line-height: 22px"&
&img style="margin-right: 10px" alt="" src="http://articles.csdn.net/uploads/allimg/__1.png"&
&a href="http://club.csdn.net/module/club/cto/bbs/7474" rel="external nofollow" style="text-align: color: #333; font-size: 14 text-decoration: none" target="_blank"&《程序员》杂志邀请您参与管理话题讨论,分享您的观点&/a&
&td width="30"&&/td&
&td width="190" valign="top"&
&h3 style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:padding-bottom: 5"&&a href="http://newsletter.csdn.net/m/news/newsletter/index/13" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:"&关于智能硬件周刊&/a&&/h3&
&p style="line-height: 22 font-size: 13 margin: 5px 0 0 0;"&智能硬件周刊是CSDN推出的专辑周刊,萃取硬件领域多方资讯,展现与物联网相关的最新开发技术信息、热门硬件产品和硬件团队故事。更多精彩内容,欢迎访问&a href="http://hardware.csdn.net" rel="external nofollow" target="_blank" style="text-decoration:color: #c00;font-size: 13"&CSDN智能硬件技术社区&/a&。&/p&
&!-- 近期活动 --&
&h3 style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:padding-bottom: 5"&近期活动&/h3&
&p style="line-height: 22 font-size: 13 margin: 5px 0 0 0;"&&a style="color:#333; font-size:13text-decoration:font-family: Microsoft Y" target="_blank" href="http://huiyi.csdn.net/activity/product/goods_list?project_id=1203" rel="external nofollow" &【在线培训】HTML5移动应用开发:Cordova应用开发&/a&&br&
&span style="font-size: 12 line-height: 22 margin-bottom: 20 color: #999"&&/span& &/p&
&!-- 微信 --&
&h3 style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:padding-bottom: 5"&mobilehub微信&/h3&
&p style="font-size: 12 text-align: font-family: Microsoft Y line-height: 18 margin-bottom: 15 color: #999;border: 1px solid #"&&img alt="" style="width: 190 height: 190 " src="/article//7.jpg"&
&br&关注了解最新活动信息&/p&
&h3 style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:padding-bottom: 5"&微博:&a href="/csdnmobile" rel="external nofollow" target="_blank" style="margin: 20px 0 0 0; font-family: Microsoft Ycolor: #c00; font-size: 16 font-weight: text-decoration:"&@csdnmobile&/a&&/h3&
&p style="font-size: 12 font-family: Microsoft Y line-height: 22 margin-bottom: 20 color: #999"&欢迎订阅CSDN其他技术邮件:&br&
&a href="http://newsletter.csdn.net/m/news/newsletter/index/1" rel="external nofollow" style="margin-right: 5 color: rgb(204, 102, 0)" target="_blank"&
&span style="text-decoration:"&移动周刊&/span&&/a&|&a href="http://newsletter.csdn.net/m/news/newsletter/index/12" rel="external nofollow" style="margin-right: 10 color: rgb(204, 102, 0)" target="_blank"&
&span style="text-decoration:"&移动游戏周刊&/span&&/a&&a href="http://newsletter.csdn.net/m/news/newsletter/index/4" rel="external nofollow" style="margin-right: 5 color: rgb(204, 102, 0)" target="_blank"&
&br/&&span style="text-decoration:"&《程序员》速递&/span&&/a&|&a href="http://newsletter.csdn.net/m/news/newsletter/index/2" rel="external nofollow" style="margin-left: 5 color: rgb(204, 102, 0)" target="_blank"&
&span style="text-decoration:"&云周刊&/span&&/a&&/p&
&td colspan="2" height="10"&&/td&
&td colspan="3" align="center" bgcolor="#ebebeb" style="font-size: 12 line-height: 20 padding: 10px 15 color: rgb(102, 102, 102)"&
查看&a style="color: rgb(204, 102, 0)" target="_blank" href="http://newsletter.csdn.net/m/news/newsletter/index/13" rel="external nofollow" rel="external nofollow" rel="external nofollow" &&span style="text-decoration: underline"&智能硬件周刊往期回顾&/span&&/a&,更多精彩内容尽在&a style="color: rgb(204, 102, 0)" href="http://mobile.csdn.net/" rel="external nofollow" target="_blank"&&span style="text-decoration:"&CSDN移动频道&/span&&/a&。欢迎向您的朋友推荐&a style="color: rgb(204, 102, 0)" href="http://mailfeed.csdn.net/es.ashx?cid=49&email=&op=w" rel="external nofollow" target="_blank"&&span style="text-decoration:"&订阅&/span&&/a&本邮列表。&br&如果不想再收到该邮件,可以&a style="color: rgb(204, 102, 0)" href="http://mailfeed.csdn.net/es.ashx?cid=49&email=&op=b" rel="external nofollow" target="_blank"&&span style="text-decoration:"&取消订阅&/span&&/a&&/td&
&div style="display:"&&script src="zz.com/stat.php?id=5217866&web_id=5217866" language="JavaScript"&&/script&&/div&
&img src="http://tracker.csdn.net/edmtracker.aspx?e=%25EMAIL%25&m=3060" width="1" height="1"&
&div style="display:"&&script type="text/javascript"&var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_E%3C/span%3E%3Cscript src='" + cnzz_protocol + "zz.com/stat.php%3Fid%3Dshow%3Dpic' type='text/javascript'%3E%3C/script%3E"));&/script&&/div&&/body&
&img src="http://tracker.csdn.net/edmtracker.aspx?e=&m=4459" width=1 height=1&
下面是其它网友的补充:
jQuery一般来说还是很好用的,但有时候它也会有些问题的,比如jQuery的html()方法设置html代码,在一种情况下,ie6、ie7、ie8 下是不能设置html代码的。本文说的问题只针对ie8(包括ie8)以下的浏览器。
  1.什么情况下IE6、IE7、IE8 jQuery.html("xxx")方法会设置不上html代码?
  答:当被加载的的html代码里面出现以下情况,ie8(包括ie8)以下是设置不上html代码的:
    a) 被设置的html代码中包含引用其他js的,如:&script src="Stone.js" type="text/javascript"&&/script& 这种情况下,设置html代码无效。
    b) 被设置的html代码中包含js 方法的,如:function Stone(){ alert("我叫MT"); },设置html代码无效。
    c) 被设置的html代码中有css 样式的,如:.Stone ul li{ list-style:float: }等,设置的html代码无效。[附加:被设置的html代码中如果包含引用其他外部
      样式的,比如:&link href="../Css/style.css" rel="stylesheet" type="text/css" /&,虽然不会影响html设置,但是被引用的css是无效的,是没有样式的。]
  2.原因分析:
  答:被设置的html,jQuery只是单纯的解析为html,不会去理会其他的因素和代码,所有导致上述问题的出现。
  3.解决方案:
  答:去掉被设置的js引用css引用和代码即可解决。
【Stone 制作整理,引用请写明出处谢谢合作,联系QQ:1370569】
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具

我要回帖

更多关于 poi读取word内容样式 的文章

 

随机推荐