js 修改当前的css
摘要:CSSStyleSheet.insertRule() CSSStyleSheet.insertRule(".red::before { color: lightgray;content:"测试" }",0) CSSStyleSheet.addRule() 已经移除废弃 stylesheet.dele
阅读全文
css 防止鼠标拖动造成文字选中
摘要:body *{ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select:
阅读全文
css 伪元素
摘要:概念 伪元素是一个附加至选择器末的关键词,允许你对被选择元素的特定部分修改样式。 MDN链接 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Pseudo-elements
阅读全文
css 伪类
摘要:伪类使用:来表示 a:link {color:#FF0000;} /* 未访问的链接 */ a:visited {color:#00FF00;} /* 已访问的链接 */ a:hover {color:#FF00FF;} /* 鼠标划过链接 */ a:active {color:#0000FF;}
阅读全文
css fill(铺满)
摘要:XXX{ object-fit:fill } maybe following is useful XXX{ position:absolute; width:100%; height:100%; left:0; top:0; }
阅读全文
CSS禁止鼠标动作
摘要:pointer-events: none;鼠标没有动作
阅读全文
CSS表示颜色
摘要:CSS三种颜色表示方式 十六进制 - 如:"#ff0000" RGB - 如:"rgb(255,0,0)" 颜色名称 - 如:"red"
阅读全文