摘要: jquery简写 window. onload=function(){}可以简写为 onload=function(){} window.alert("a")简写为alert("a") window不写 内容也会在window内 $(document).ready(function(){}) $() 阅读全文
posted @ 2021-11-08 14:18 熊熊日记 阅读(22) 评论(0) 推荐(0)
摘要: 获取方法 document.getElementById(); ID获取 document.getElementsByClassName(); 类名获取 document.getElementsByName(); name获取 document.getElementsByTagName() ; 标签 阅读全文
posted @ 2021-11-05 17:35 熊熊日记 阅读(48) 评论(0) 推荐(0)
摘要: 表达式 与 运算符 \d 0-9任意一个数字 [0-9] \d []其中任意一个字符 12=>[12] 1,2 12=>[1][2] 12 [12a] 1,2,a [a-zA-Z0-9] [^] 非其中的任意一个字符 [^0-9] 0-9以外的任何数值 \w 数字,字母,下划线 . 任意一个字符 包 阅读全文
posted @ 2021-11-04 17:27 熊熊日记 阅读(142) 评论(0) 推荐(0)
摘要: js的三种用法 1: 第一种用法 直接写在标签内 <div class="div" onclick="alert(0)">点我</div> 2:第二种用法 写在script里边 <script> window.onload=function(){ var div=document.querySele 阅读全文
posted @ 2021-11-02 18:44 熊熊日记 阅读(61) 评论(0) 推荐(0)
摘要: display: flex; /* flex 布局 */ justify-content:space-around;/* 内容布局方式 居中 */ align-items: center; /*内容水平居中显示 */ background-color: rgba(0,0,0,0.333); 灰色背景 阅读全文
posted @ 2021-11-01 17:23 熊熊日记 阅读(109) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/tou.css"/> </head> <body> <div cl 阅读全文
posted @ 2021-10-29 12:21 熊熊日记 阅读(59) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/xq.css"/> </head> <body> <div cla 阅读全文
posted @ 2021-10-28 21:28 熊熊日记 阅读(40) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="css/sy.css"/> </head> <body> <div c 阅读全文
posted @ 2021-10-27 16:55 熊熊日记 阅读(248) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>专辑</title> <link rel="stylesheet" type="text/css" href="css/zj.css" /> </head> <body> <di 阅读全文
posted @ 2021-10-26 22:26 熊熊日记 阅读(57) 评论(0) 推荐(0)
摘要: 精灵图 优点:减少http请求,网页加载速度快,提高用户体验。 缺点:去要不断调整,不能随便改变大小和位置。 使用方法: 1:准备一张精灵图 2:编辑HTML代码 3:先给标签添加合适的代码 然后加入css精灵图片代码 4:浏览效果 主要css样式: font-weight: normal; 改变字 阅读全文
posted @ 2021-10-25 19:56 熊熊日记 阅读(50) 评论(0) 推荐(0)