摘要: (1)eq匹配一个给定索引值的元素 是从0开始的 查询第2条信息 (2)gt;匹配所有大于给定索引值的元素 查询索引大于1的 (3). lt: 匹配所有小于给定索引值的元素 查询索引小于1的 (4)attr 一个代表获取 两个代表设置var id=$(".div").attr("data-id")c 阅读全文
posted @ 2021-11-04 22:36 小新整挺好 阅读(30) 评论(0) 推荐(0)
摘要: 1.getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用。 document.getElementById() id属性2. getElementsByClassName() 方法返回文档中所有指定类名的元素集合document.getElementsByClassNam 阅读全文
posted @ 2021-11-02 22:08 小新整挺好 阅读(23) 评论(0) 推荐(0)
摘要: background-repeat: no-repeat// 设置背景重复 display: none// 显示 justify-content: space-around//页面水平居中 align-items: center;//页面垂直居中 min-height: //最小高度 cursor: 阅读全文
posted @ 2021-11-01 22:15 小新整挺好 阅读(37) 评论(0) 推荐(0)
摘要: flex-start(默认值):左对齐 flex-end:右对齐 center: 居中 space-between:两端对齐,项目之间的间隔都相等。 space-around:项目两侧的间隔相等 outline: none;//去除轮廓线 阅读全文
posted @ 2021-10-29 22:28 小新整挺好 阅读(56) 评论(0) 推荐(0)
摘要: &gt; 在页面显示为">" &li; 在页面显示为"<" “text-decoration: none”效果为取消下划线 "text-decoration: line-through“效果为添加删除线 “text-decoration: overline“效果为上划线 阅读全文
posted @ 2021-10-28 17:12 小新整挺好 阅读(24) 评论(0) 推荐(0)
摘要: 设置样式 text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webk 阅读全文
posted @ 2021-10-27 17:30 小新整挺好 阅读(33) 评论(0) 推荐(0)
摘要: 我们通常使用font-family,color,和font-size,属性来定义文本样式,而不是使用<font>标签。还有一些很方便的快捷键使用 阅读全文
posted @ 2021-10-26 23:52 小新整挺好 阅读(50) 评论(0) 推荐(0)
摘要: div{ background-color: #70C000; 设置背景颜色 background-image: url(../img/1jmphz166b.jpg); 设置背景图像 background-repeat: no-repeat; 设置背景重复:no-reapeat不重复;repeat- 阅读全文
posted @ 2021-10-25 22:29 小新整挺好 阅读(29) 评论(0) 推荐(0)