首页| 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次
  • 浏览次数:0次
  • 资源积分: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
  • 大智若愚 1分钟前 成为了本站会员

  • Mason 2小时前 成为了本站会员

  • 2小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

0.176262s