当前位置:网站首页>Expand and collapse too high div
Expand and collapse too high div
2022-06-26 10:42:00 【MervynLammm】

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css"> .contentDiv {
width: 300px; } .hideDiv {
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } </style>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
</head>
<body>
<div>
<div class="contentDiv hideDiv">
Kubernetes One of the core features is the ability to manage containers independently to ensure that containers in the cloud platform run according to the expected state of users ( For example, users want to make apache Has been running , Users don't need to care about how to do ,Kubernetes Will automatically monitor , Then go and restart , newly build , All in all , Give Way apache Always provide services ), Administrators can load a microservice , Let the planner find the right place , meanwhile ,Kubernetes It also improves the tools and humanization of the system , So that users can easily deploy their own applications ( It's like canary deployments).
</div>
<a href="javascript:;" class="showHideA">[ Expand all ]</a>
</div>
<script type="text/javascript"> $(".showHideA").on("click", function() {
var contentDiv = $(".contentDiv"); if (contentDiv.hasClass("hideDiv")) {
contentDiv.removeClass("hideDiv"); $(this).text("[ Retract ]"); } else {
contentDiv.addClass("hideDiv"); $(this).text("[ Expand all ]"); } }); </script>
</body>
</html>
边栏推荐
- Installer MySQL sous Linux [détails]
- 方法区里面有什么——class文件、class文件常量池、运行时常量池
- Which PHP open source works deserve attention
- 【Leetcode】76. Minimum covering substring
- RDB持久化验证测试
- MySQL 10th job - View
- String constant pool, class constant pool, and runtime constant pool
- See how I store integer data in the map < string, string > set
- MySQL第六次作业-查询数据-多条件
- 看我在Map<String, String>集合中,存入Integer类型数据
猜你喜欢

開發者,微服務架構到底是什麼?
![Installer MySQL sous Linux [détails]](/img/38/77be56c3ef3923ce4c4e5df4a96f41.png)
Installer MySQL sous Linux [détails]

The sixth MySQL job - query data - multiple conditions

Appium automation test foundation - mobile end test environment construction (II)

36 qtextedit control input multiline text

Postman入门教程

Allocation of heap memory when creating objects

How to change the QR code material color of wechat applet

Record the handling of oom problems caused by too many threads at one time

MySQL 10th job - View
随机推荐
Global and Chinese markets in hair conditioner 2022-2028: Research Report on technology, participants, trends, market size and share
SQL Server 基础介绍整理
Swiftui development experience: data layer of application design for offline priority
Under the double reduction, the amount of online education has plummeted. Share 12 interesting uses of webrtc
Index summary of blog articles -- Industrial Internet
Common interview questions of binary tree
Cmake / set command
MySQL job 11 - application de la vue
OpenCV图像处理-灰度处理
Tape library simple record 1
Global and Chinese markets of children's electronic thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
Yarn package management tool
Progressive web application PWA is the future of application development
VS或Qt编译链接过程中出现“无法解析的外部符号”的原因:
磁带库简单记录1
哪些PHP开源作品值得关注
See how I store integer data in the map < string, string > set
【Leetcode】76. Minimum covering substring
Hcia-dhcp experiment
DBSCAN