table一行隐藏和显示
来源:互联网 发布:四个字的网络歌手名字 编辑:程序博客网 时间:2024/05/30 05:11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS实现鼠标点击展开/隐藏表格行</title>
</head>
<body>
<script language="javascript">
function TestBlack(TagName){
var obj = document.getElementById(TagName);
if(obj.style.display==""){
obj.style.display = "none";
}else{
obj.style.display = "";
}
}
</script>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr onclick="TestBlack('divc');">
<td width="760" height="20" bgcolor="#00CCFF">Click Me!</td>
</tr>
<tr id="divc" style="display:none;color:Blue">
<td width="760" height="60" bgcolor="#9966FF"></td>
</tr>
</table>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS实现鼠标点击展开/隐藏表格行</title>
</head>
<body>
<script language="javascript">
function TestBlack(TagName){
var obj = document.getElementById(TagName);
if(obj.style.display==""){
obj.style.display = "none";
}else{
obj.style.display = "";
}
}
</script>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr onclick="TestBlack('divc');">
<td width="760" height="20" bgcolor="#00CCFF">Click Me!</td>
</tr>
<tr id="divc" style="display:none;color:Blue">
<td width="760" height="60" bgcolor="#9966FF"></td>
</tr>
</table>
</body>
</html>
阅读全文
0 0
- table一行隐藏和显示
- table表格------一行隐藏和显示
- table 的隐藏和显示
- div隐藏和显示下一行
- Search Table 隐藏和显示功能实现!
- 显示和隐藏table中的border
- 隐藏和显示 table 某几行 jQuery
- table 隐藏显示列
- html table 边框和分割线显示和隐藏问题
- TABLE中列与行的显示和隐藏
- Asp.net Table根据具体要求显示和隐藏
- js显示隐藏 table 的行和列
- 密码切换显示和隐藏 并且保证切换时候EditText显示在最后一行
- table内文字一行内显示
- javascript 显示隐藏表的一行
- css 一行内显示 超出自动隐藏
- 文字在一行显示,多余的隐藏
- css 一行内显示 超出自动隐藏
- 配置openresty使用lua并发请求API
- 自费出书出版流程
- 将A 表数据插入B表而B表不存在 Oracle 写法
- 【Linux】Shadowsock/ss 安装教程(ubuntu)
- 全能的大厨!最酷的厨房机器人
- table一行隐藏和显示
- 浏览器渲染原理
- HDOJ 1003题:max sum
- SIFT中的尺度空间和传统图像金字塔
- 安卓架构从mvc到mvp再到mvvm
- Integer.bitCount()理解
- ef的多表联查
- CCF201703-2 学生排队
- 子线程怎么传递数据给主线程