09 2021 档案
摘要:变量 每个变量都指向一个值,即变量实际上是指向一个值的标签,变量的值就是标签的内容 变量在使用过程中可以随时修改变量的值,python将始终记录变量最新的值 变量的使用规则 变量名称只能包含字母,数字,下划线,不能以数字开头 变量名称不能包含空格 不能使用python关键字和函数名作为变量名 变量命
阅读全文
摘要:回顶 锚点回顶 scrollTop表示被隐藏在内容区域上方的像素数。 scrollTo方法滚动当前window中显示的文档 scrollBy滚动当前window中显示的文档,x和y指定滚动的相对量 scrollIntoView滚动当前元素,进入浏览器的可见区域 document.querySelec
阅读全文
posted @ 2021-09-27 12:26
~LemonWater
摘要:.app { background-color: #000; padding: 20px; } .btn { width: 80px; height: 30px; border-radius: 8px; color: #fff; background-color: steelblue; margin
阅读全文
posted @ 2021-09-22 18:17
~LemonWater
摘要:获取伪元素 返回一个CSSStyleDeclaration 对象(只读) let btnBefore = window.getComputedStyle(document.querySelector('.btn-item'),':before'); //读取伪元素的某个样式 console.log(
阅读全文
posted @ 2021-09-22 16:31
~LemonWater
摘要:结构性伪类 demo <div class="parent"> <div class="line">aaa</div> <div class="line">bbb</div> <div class="line">ccc</div> <div class="line">ddd</div> </div>
阅读全文
posted @ 2021-09-17 18:24
~LemonWater
摘要:#### css 截断单词并添加-,设置定宽 ```css p{ width:100%; /*设置内容宽度*/ word-break:break-word; /*截断单词*/ hyphens:auto; /*自动添加连字符*/ -webkit-hyphens: auto; -moz-hyphens:
阅读全文
posted @ 2021-09-09 17:47
~LemonWater

浙公网安备 33010602011771号