摘要:
浏览器控制台使用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>浏览器控制台使用</title> </head> <body> <!-- JavaScript严格区分大小写! --> <script 阅读全文
摘要:
JS基本使用 内部标签 <!-- 内部标签: script标签内,写Javascript代码 --> <script> alert('Hello,World!'); </script> 外部引入 <!-- 外部引入 --> <!-- 注意:script标签必须成对出现 --> <script src 阅读全文
摘要:
z-index 及透明度 z-index 图层 默认是0,最高无限 .box{ position: relative; } div:nth-of-type(1){ width: 200px; height: 200px; background: #c3d23b; border: 1px soli 阅读全文
摘要:
定位 相对定位 相对定位 : position: relative; 相对于原来的位置,进行指定的偏移,相对定位的话,他仍然在文档流中 top : 10px; 距离上方移动10px (向下) left bottom right :-20px; 距离右方移动-20px (向右) html : <!DO 阅读全文