摘要: z-index使用方法: 1、首先要把position设置为 absolute 或 relative 或 fixed,z-index才能生效 2、设置z-index的值(整数) # 值越大代表越置前,例如:z-index:9999 # 若定义为-1,代表为最底层 # 如果要div1不被div2遮挡, 阅读全文
posted @ 2023-05-16 14:40 映辉 阅读(472) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <!-- 引入jQuery --> <script src="jq.js"></script> </head> <body> <!-- 刷新按 阅读全文
posted @ 2023-05-16 14:04 映辉 阅读(81) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>demo</title> <!-- 引入jQuery --> <script src="jq.js"></script> </head> <body> <scr 阅读全文
posted @ 2023-05-16 09:44 映辉 阅读(144) 评论(0) 推荐(0)
摘要: <!-- 引入jQuery.js --> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script> <!-- 准备一个将要展示的<div>,它的默认状态为隐藏(display: none) --> 阅读全文
posted @ 2023-05-16 00:40 映辉 阅读(28) 评论(0) 推荐(0)