惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

博客园 - 雨帘

农村出身的80后身处都市的十大尴尬 HP大中华区总裁孙振耀退休感言(转) 转——如何让上司支持自己的想法 WMS部分互操作完成 支持WMS GeoMapNet开发日志——导出 地图缓存的研究 Research on Tile Map 西湖的残冬 新型统计图 SVG的WebGIS实例 大地经纬度和国家标准坐标转换 建立在不同的数据库引擎的Sql问题,无思路 三层设计模式初步分离 IMS服务自动注册功能实现 聚合(Aggregation)和组合(Composition)的区别 Personal ArcSDE不支持IIS6的使用 VML脚本产生 为什么我的ActiveSync连接不上模拟器
脚本操作table
雨帘 · 2007-10-23 · via 博客园 - 雨帘

如果在页面上使用
<table   border="1"   cellspacing="5"   cellpadding="5"   bgcolor="#ffffff" >
.....
</table >
修改cellspacing\cellpadding,在页面上可以看到很明显的效果,
但是如果在脚本中进行生成
var   zoomTbl   =   document.createElement(" <table > </table >");
        zoomTbl.style.zindex   =   "10";
        zoomTbl.border   =   "1";
        zoomTbl.cellspacing   =   "5";
        zoomTbl.cellpadding   =   "5";
zoomTbl加入到当前的document.body中了,且body中就只有这个table
在改变cellspacing\cellpadding,页面上根本什么反应都没有
但是如果用
var   zoomTbl   =   document.createElement(" <table   border= "1 "   cellspacing= "5 "   cellpadding= "5 " > </table >");
这样就可以
var   zoomTbl   =   document.createElement(" <table > </table >");
        zoomTbl.setAttribute("cellspacing",0);
        zoomTbl.setAttribute("cellpadding",0);
        zoomTbl.setAttribute("border",0);
此时实际上cellpadding感觉是为1

posted on 2007-10-23 22:52  雨帘  阅读(151)  评论()    收藏  举报