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

推荐订阅源

T
The Blog of Author Tim Ferriss
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
有赞技术团队
有赞技术团队
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
博客园_首页
Y
Y Combinator Blog
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Help Net Security
P
Proofpoint News Feed
B
Blog
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 白沙

自定义鼠标右键弹出式菜单 web菜单的实现【zt】 深入浅出理解索引结构[zt] 你真的了解.NET中的String吗? 堆和栈的区别 软件团队的建设和软件开发管理[zz老秦] 简单的SOCKET传送文件和字符串实现 类与结构的区别 C#中ref和out的使用小结 CSS中expression使用简介(转载) 特效:CSS+Javascript实现表格背景变色 C#箴言:定义常量的两种方法 网页弹出窗口代码【来源于网络】 注意document中需要对象的方式,区别下面四种 jsp对checkbox的操作 How to populate the datagrid on background thread with data binding by using Visual C# Good morning I'm very happy to come here to study with you 在 ASP.NET 中执行 URL 重写
div的操作
白沙 · 2007-05-16 · via 博客园 - 白沙

1。隐藏时不占位

document.all.div名.style.display="block"(显示)

document.all.div名.style.display="none"(隐藏)

2。隐藏时占位

document.all.div名.style.visibility="true"(显示)

document.all.div名.style.visibility="false"(隐藏)

3。取值

var abc = document.getElementById("b").innerHTML

4。赋值

document.getElementById("b").innerHTML = "新值";

posted on 2007-05-16 12:40  白沙  阅读(230)  评论(0)    收藏  举报