摘要:
eq 第几个索引 $("li:eq(2)") gt 大于第几个索引 $("li:gt(2)") lt(小于)前几个索引 $("li:lt(2)") $("li:parent") $("li:has(.span)") 选择器 $("li:contains(列表)") 文本 :first-child 匹
阅读全文
posted @ 2021-11-09 08:13
卡坦菲
阅读(31)
推荐(0)
摘要:
document.getElementById(); document.getElementsByClassName(); document.getElementsByName(); document.getElementsByTagName(); document.querySelector();
阅读全文
posted @ 2021-11-05 15:21
卡坦菲
阅读(97)
推荐(0)
摘要:
position 属性 position 属性规定应用于元素的定位方法的类型。 position: fixed position: fixed; 的元素是相对于视口定位的,这意味着即使滚动页面,它也始终位于同一位置。 position: absolute; position: absolute; 的
阅读全文
posted @ 2021-11-04 17:20
卡坦菲
阅读(37)
推荐(0)
摘要:
var reg1=/\d/; var reg2=new RegExp("\d"); /* \d 0-9任意一个数字 \D 任意一非字符 (大写的跟小写的相反) [] 其中的任意一个字符 12=> [1][2] 或者 12 [^] 非其中的任意一个字符 [^0-9] [a-z][A-Z][0-9][_
阅读全文
posted @ 2021-11-04 16:23
卡坦菲
阅读(26)
推荐(0)
摘要:
// number 数值 整数和小数 // String 字符串 (字符) "" '' // bool true/false // null 没有 // undefined //symbol es6 var a=null; console.log(typeof a); //object:正则,数组对
阅读全文
posted @ 2021-11-02 16:20
卡坦菲
阅读(49)
推荐(0)
摘要:
flex-direction属性决定主轴的方向(即项目的排列方向) .box { flex-direction: row | row-reverse | column | column-reverse; } ow(默认值):主轴为水平方向,起点在左端。 row-reverse:主轴为水平方向,起点在
阅读全文
posted @ 2021-11-01 18:23
卡坦菲
阅读(405)
推荐(0)
摘要:
(1) block 块类型。默认宽度为父元素宽度,可设置宽高,换行显示。 (2) none 元素不显示,并从文档流中移除。 (3) inline 行内元素类型。默认宽度为内容宽度,不可设置宽高,同行显示。 (4) inline-block 默认宽度为内容宽度,可以设置宽高,同行显示。 (5) lis
阅读全文
posted @ 2021-11-01 13:40
卡坦菲
阅读(106)
推荐(0)
摘要:
1.flex-direction flex-direction属性决定主轴的方向(即项目的排列方向)。 .box { flex-direction: row | row-reverse | column | column-reverse; } row(默认值):主轴为水平方向,起点在左端。 row-
阅读全文
posted @ 2021-10-28 21:46
卡坦菲
阅读(34)
推荐(0)
摘要:
在Swiper中文网 https://www.swiper.com.cn/ 中下载Swiper 在下载到的文件中找到swiper-bundle.min.js和swiper-bundle.min.css文件,放入css,js当中 在资源文件中有45个案例 还有很多样式就不11列出(也可在其官网在线演示
阅读全文
posted @ 2021-10-27 20:41
卡坦菲
阅读(302)
推荐(0)
摘要:
1、生成后代元素:> 大于号表示后面要生成的内容是当前标签的后代 命令:nav>ul>li <nav> <ul> <li></li> </ul> </nav> 2、生成兄弟元素:+ 加号表示后面的元素和前面的元素是兄弟元素 命令:div+p+bq <div></div> <p></p> <block
阅读全文
posted @ 2021-10-26 17:02
卡坦菲
阅读(48)
推荐(0)