<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
#card{
display:none;
width: 200px;
height: 200px;
}
.active{
background-color: #555;
color:wheat;
}
</style>
<script src="C:\Users\PC\Desktop\jquery-3.3.1.js"></script>
<script>
$(document).ready(function(){
var cardTrigger = $('#card-trigger');
var card = $('#card');
$(cardTrigger).click(function(){
if(card.is(':visible')){
jquery--公告栏
最新推荐文章于 2024-03-15 09:36:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)