zoukankan
html css js c++ java
简单的点击显示、隐藏效果
开始只有头部显示,点击头部再显示出尾部。
事例效果:
<script type="text/javascript"> function show(){ if(document.getElementById("table_foot").style.display=="block"){ document.getElementById("table_foot").style.display="none"; }else{ document.getElementById("table_foot").style.display="block"; } } </script> <table border="1" width="100%"> <tr id="table_head" onclick="show()" style="cursor:pointer;"> <td align="center">头部</td> </tr> <tr id="table_foot" style="display:none;"> <td height="300" align="center" valign="middle" >尾部</td> </tr> </table>
提示:可以先在文本框内,根据需要修改代码后再运行
display="block";
display="none";
调过来就是开始都显示,然后点击头部,尾部隐藏!
查看全文
相关阅读:
我爬取了爬虫岗位薪资,分析后发现爬虫真香
红薯,撑起父亲的快乐,让我揪心
跨域问题服务端解决办法 Request header field Authorization is not allowed by Access-Control-Allow-Headers
antdvue2.x 使用阿里iconfont自定义组件iconfont
前端 crypto-js aes 加解密
jsencrypt加密解密字符串
CryptoJS base64使用方法
客户端js生成rsa 密钥对
js动态添加style样式
PHP 使用非对称加密算法(RSA)
原文地址:https://www.cnblogs.com/joe235/p/1184706.html
最新文章
针对 Percona 二进制数据库,安装 tpcc-mysql 异常处理
vant2.0 列表上拉下拉加载(普通 or 带搜索条件)
postgresql 锁表查询语句
postgresql 概念
PostgreSQL Autovacuum和vacuum + 参数优化
postgreSQL 备份+还原多张表
搭建django的docker环境
app登陆到离线的时候,报错:数据格式转换错误n I/O error has occurred while writing a response message entity to the container output stream. org.glassfish.jersey.server.internal.process.MappableException
Django文件上传下载
设计LocalLibaray模型
热门文章
django 环境准备
c#中Convert.ChangeType的意义?泛型方法返回值类型转换
泛型协变与逆变
python实现两台不同主机之间进行通信(客户端和服务端)——Socket
springboot使用redis(从配置到实战)
常用正则表达式最强汇总(含Python代码举例讲解+爬虫实战)
pip的问题 Can't connect to HTTPS URL because the SSL module is not available
Python实现发送邮件(实现单发/群发邮件验证码)
人工智能下的音频还能这样玩!!!!
Python对系统数据进行采集监控——psutil
Copyright © 2011-2022 走看看