js 问题 ~~求解答

qq_29783739 2015-09-21 10:50:01
原来的代码是这样的 <div region="center" title="内容面板" id="neirong" iconcls="icon-index1">
<iframe id="contentPage" name="contentPage" width="100%" style="height: 800px;" frameborder="0"
marginheight="0" marginwidth="0" scrolling="auto"></iframe>
</div>
到网页上就这样了
<div style="left: 190px; top: 72px; width: 1250px;" class="panel layout-panel layout-panel-center"><div style="width: 1226px;" class="panel-header"><div class="panel-title panel-with-icon">内容面板</div><div class="panel-icon icon-index1"></div><div class="panel-tool"><div></div></div></div><div style="width: 1248px; height: 287px;" class="layout-body panel-body" region="center" title="kkk" id="neirong" iconcls="icon-index1">
<iframe id="contentPage" name="contentPage" style="height: 800px;" marginheight="0" marginwidth="0" scrolling="auto" frameborder="0" width="100%"></iframe>
</div></div>
我想用js更改 ”内容面板 “这个几个字怎么操作 楼下付图
...全文
99 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
DaveLeeCN 2015-09-21
  • 打赏
  • 举报
回复
DOM:
document.getElementsById("#neirong").setAttribute("title","newtitle");
Jquery:
$("#neirong").attr("title", "newtitle");
木头海上漂 2015-09-21
  • 打赏
  • 举报
回复
样式选择器:$(".panel-title ").html("xxx")
qq_29783739 2015-09-21
  • 打赏
  • 举报
回复


87,838

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧