随笔分类 -  前端

摘要:1、let用于声明变量(块范围) 2、const用于声明常量(创建一个无法重新分配的变量) 3、var用于声明变量(旧的实际不怎么使用了)函数范围 阅读全文
posted @ 2023-06-13 23:25 李林林 阅读(17) 评论(0) 推荐(0)
摘要:1、Number、String、Boolean、Undefined、Null 2、typeof console.log(typeof 123)结果:number console.log(typeof null)结果:object 阅读全文
posted @ 2023-06-12 21:51 李林林 阅读(15) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-06-08 00:07 李林林 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-23 20:19 李林林 阅读(20) 评论(0) 推荐(0)
摘要:1.Number类型 2.科学计数法 3. 0.5可以表示为.5 4.一个特殊的数字型值NaN 阅读全文
posted @ 2023-02-21 20:07 李林林 阅读(36) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-25 19:28 李林林 阅读(24) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-12 01:26 李林林 阅读(41) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-12-7</title> <style type="text/css"> /* background: 颜色 图片 图片位置(270px 10px) 平铺方式 */ di 阅读全文
posted @ 2021-12-07 01:07 李林林 阅读(54) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-12-6</title> <link rel="stylesheet" type="text/css" href="../css/列表的样式.css"/> </head> 阅读全文
posted @ 2021-12-07 00:12 李林林 阅读(41) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-12-6</title> </head> <style type="text/css"> /*默认的颜色*/ a{ text-decoration: none; colo 阅读全文
posted @ 2021-12-06 01:39 李林林 阅读(26) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-11-30字体样式</title> <style type="text/css"> /* 颜色:单词RGB:0~F RGBA:(A的范围是0~1) text-align: 阅读全文
posted @ 2021-12-01 00:23 李林林 阅读(37) 评论(0) 推荐(0)
摘要:1.span标签:重点突出的字使用span标签套起来 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-11-30</title> <style type="text/css"> #test{ font-size: 50 阅读全文
posted @ 2021-11-30 01:38 李林林 阅读(35) 评论(0) 推荐(0)
摘要:1.属性名,属性名=属性值(正则) = 是绝对等于 *= 是包含这个元素 ^= 以这个开头 $= 以这个结尾 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-11-23</title> <style type="tex 阅读全文
posted @ 2021-11-24 00:17 李林林 阅读(121) 评论(0) 推荐(0)
摘要:1.层次模型: 2.层次选择器 1、后代选择器:在某个元素的后面 祖爷爷 爷爷 爸爸 你 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-11-21</title> </head> <style type="text/ 阅读全文
posted @ 2021-11-21 23:09 李林林 阅读(36) 评论(0) 推荐(0)
摘要:1.标签选择器:选择一类标签 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>2021-11-19</title> <style type="text/css"> /*标签选择器会选择到也面上的所有标签*/ h1 { color 阅读全文
posted @ 2021-11-20 00:11 李林林 阅读(718) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>使用顺序: 行内最大,内部和外部遵循就近原则</title> <!-- 内部样式 --> <style type="text/css"> h1{ color: #000000; } 阅读全文
posted @ 2021-11-18 00:03 李林林 阅读(37) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Title</title> <!-- 规范,<style>中可以写css代码 ,每一个声明最好使用封号结尾 语法:选择器{ 声明1: 声明2: .... } <style type 阅读全文
posted @ 2021-11-17 23:41 李林林 阅读(19) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-14 22:48 李林林 阅读(16) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-14 22:12 李林林 阅读(19) 评论(0) 推荐(0)