jq 的导入 <body> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script></body> <body> <script src="jq.js"></script></htm 类似 css 选择器 <!DOCTYPE html> <html lang="en&…
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet&quo…
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet&quo…
js <——>jq <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div>一</div> <div>二</div> <div>三</div&g…
上节补充方法 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> // toString 转换为字符串 var a = 123.456; var b = a.toString(); console.…
算数运算符 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> //算数运算符:+,-,*,/,%,++,-- // 数和数的运算 var nnu1 = 5; var nnu2 = 2; // co…
JS 引入方式 在 HTML 中写入 写在 的标签里 <script> </script>推荐 放在 </body> 结束之前 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <di…
在 CSS 中第个标签都可以认为是个盒子,盒子就有以下几层 边框 border border-top: 5px solid black; /*上边框 实线*/ border-right: 3px double yellow; /*右边框 双线*/ border-bottom: 8px dotted red; /*下边框 点点*/ border-left: 7px dashed green; /*左边框 虚线*/ 内边距 padding 内容和框音响的距离 在实际操作使用中,一般不对内边距调,这样…
index.html 首页 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/reset.css"> <!--引入本地--> <link rel…
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet&quo…