- 博客(2)
- 收藏
- 关注
原创 前端基础
文档结构: <!- 定位属性: position (定位方式,如 static 、 relative 、 absolute 、 fixed )、 top 、 right 、 bottom 、 left。- 盒模型属性: width (宽度)、 height (高度)、 padding (内边距)、 margin (外边距)、 border (边框)。- 基本选择器:元素选择器(如 div )、类选择器( .classname )、ID选择器( #idname )、通配符选择器( * )。
2025-04-12 19:46:13
246
原创 css选择器
* nth-of-type(n) nth-last-of-type(n)倒着数 某类型下的第n个。/* 7、兄弟选择器 选择器1~选择器2 选择器2为*表示找所有弟弟*/div[id*=xx]有id属性且id属性值包含xx的div元素。/* 8、选择器组合 选择器1,选择器2,选择器3 或 *//* 6、子选择器 选择器1>选择器2 强调必须父子 *//* 2、属性选择器 根据属性做选择 [属性名] *//* 5、包含选择器 选择器1 选择器2 强调包含*//* 1、元素选择器 根据元素名字做选择 */
2025-04-12 19:20:02
707
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人