- 博客(7)
- 收藏
- 关注
原创 BOM基础
BOM基础location 实现网页的跳转 console.log(location.href); http://127.0.0.1:8848/DOM/BOM/loaction.html window.location.href = 'https://www.baidu.com'; //跳转百度history() 历史记录的跳转 history.back(-1) //往历史记录跳一页 history.go(-1) //都可以去前一个去 刷新数据上有区别 h
2022-05-30 08:33:50
116
原创 数组及时间数学对象
数组及时间数学对象数组对象的方法arr.length 返回的数组的长度str.toString() 和 str.valueOf()join()⽅法能把数组序列转换为字符串 里面不加值则是以逗号为分隔符var str=["瘦","瘦1","瘦2","瘦3"]; var arr=str.join(""); //瘦瘦1瘦2瘦3 console.log(arr);sort() 排序ASCII排序reverse() 反方向排序 var str=[3,4,54,67,7687,8
2022-05-22 23:51:10
155
原创 过渡3D动画属性
过渡属性过渡:transition 我们先创建一个没有过渡效果的元素,然后通过:hover 来触发它。在没有任何过渡 效果的触发,会立即生硬的执行触发。transition 包括以下属性:transition-property: all; 如果希望所有的属性都发生过渡,就使用all。transition-duration: 1s; 过渡的持续时间。transition-timing-function: linear; 运动曲线。属性值可以是:linear 线性trans
2022-05-14 08:47:09
288
原创 flex布局
flex容器属性flex-direction 设置项目的排列方向row(默认值):主轴为水平方向,起点在左端。 横着排列row-reverse:主轴为水平方向,起点在右端。column:主轴为垂直方向,起点在上沿。 竖着排列column-reverse:主轴为垂直方向,起点在下沿。flex-wrap 排不下换行属性.box{ flex-wrap: nowrap | wrap | wrap-reverse;}flex-flow 是flex-dire
2022-05-01 17:32:13
1216
1
原创 css选择器
css选择器内容:基础选择器复合选择器伪元素选择器基础选择器*通配符选择器*{ -border: 1px solid red;}[href]属性选择器[href]{ color: red; }属性选择器[href="#"]{ color: green; }//查找带有#的样式[href^="https"]{ color: yellow; } //查找开头为https的样式 ^正则里面的[href$=".cn"]{ c
2022-04-22 16:24:08
1727
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人