首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > JavaScript的HTML div元素替换所有span元素

JavaScript的HTML div元素替换所有span元素

  • 资源大小:1.77 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: javascript span 所有 替换 元素

资 源 简 介

This Project is just a workaround for frameworks which are using span-elements instead of div-elements (which can be a problem for YAML-based layouts). The problem is surely very special and - I think - only needed very seldom. Anyway. Here it is. Simple, small, replacing all span-elements by div-elements within the page it is called. Usage Just include the script span2div.js at the end of your html-document like this: (...) (...) My Motivation Creating a YAML based layout for an application using the ICEfaces framework which favours to use span-elements instead of div-elements. Since I have no control over the ICEfaces code, I wrote this workaround to get my beloved div-elements.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.191241s