当前位置:网站首页>Div Click to collapse
Div Click to collapse
2022-04-21 07:53:00 【Gentleness901】
<script type="text/javascript">
function showdiv(){
document.getElementById("hpn").style.display="block";
document.getElementById("strHref").innerHTML=" Retract -";
document.getElementById("strHref").href="javascript:hidediv()";
}
function hidediv(){
document.getElementById("hpn").style.display="none";
document.getElementById("strHref").innerHTML=" More options +";
document.getElementById("strHref").href="javascript:showdiv()";
}
</script>
</head>
<body>
<div id="pn">
<p> Mobile product screening </p>
<p> The Internet : Move Unicom telecom </p>
<div id="hpn" style="display:none">
<p> Price :5000 above 4000-4999 3000-3999</p>
<p> characteristic :JDPhone plan ‘0’ Yuan for the machine water </p>
</div>
</div>
<p class="slide">
<a href="javascript:showdiv();" id="strHref" class="btn-slide"> More options +</a>
</p>
</body>
</html>
div The slide show
<script type="text/javascript">
$(document).ready(function(){
$(".menuTitle").toggle(function(){
$(this).next(".paddingTop").animate({height: 'toggle', opacity: 'toggle'}, "slow");
},function(){
$(this).next(".paddingTop").animate({height: 'toggle', opacity: 'toggle'});
});
});
</script>
among div The content of , The default setting is hidden display:none;
<div class="menuTitle" id="twoid">
Position
</div>
<div class="borderTop marginTop paddingTop ">
Recruitment department : The Marketing Department
<div>
<p>
<strong> Responsibilities : <br> </strong>1、 Collect market information . Through online and other media channels , Collect industry information
</p>
</div>
</div>
版权声明
本文为[Gentleness901]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210629483326.html
边栏推荐
- IDEA 使用@Autowired注解报红的解决办法
- 禁用谷歌跨域的一个办法
- 为什么mysql里面设置符合主键它显示我错了?
- When deploying. Net core on Linux platform to access SQL Server 2008 R2, it prompts the connection timeout exception
- 文件打包下载
- Dynamically generate three-level menu
- 《Qt 5.12实战》简介
- [image fusion] image fusion based on curvelet transform (evaluation index), including Matlab source code
- Oracle-SQL脚本记录
- Principle and introduction of elk log analysis system
猜你喜欢
![[question 31] create two identical pets](/img/3a/de5321bddd8fb24765a532a88d6809.png)
[question 31] create two identical pets

服务器部署svn环境

Use case diagram of umlet instructions

MySQL5.7安装操作手册(Centos7)

Golang learning resource list

pycharm 最新导入PIL库的方法

Bluetooth profile specification (AVRCP chapter) 5.1 connection and release of vctp

Axure产品原型工具使用笔记

云服务器使用frp将本机(win10/win11)内网上的apache映射到外网

Flutter 环境搭建等基础
随机推荐
php Rsa加密
Fuzzy query between two tables of SQL server and steps of importing Excel data into SQL Server
Oracle-SQL脚本记录
[Niuke brush question 18] find the longest common substring in two strings a and B
kubesphere3.0忘记admin的密码
为什么mysql里面设置符合主键它显示我错了?
[question 31] create two identical pets
OmniPlan tool user manual
批处理解析域名的ip地址并打开网页
leetcode 206. Reverse linked list
2022-04-20: the small regiment goes to participate in the military training. The military training is coming to an end. The officer wants to divide n people in a row into m groups, and then ask each g
MySQL5.7安装操作手册(Centos7)
Time and Duration and Epoch
asp. Net JS to realize dynamic addition and file upload
【图像融合】基于curvelet变换实现图像融合(评价指标)含Matlab源码
Number
343. Find the product of decomposed integers and maximize integer break
服务器部署svn环境
Exit and Status
PostgreSQL 15 即将支持SQL 标准中的 MERGE 语句