02 2023 档案
摘要:自适应的椭圆 椭圆 border-radius: 50%; 二分之一椭圆 border-radius: 100% 0 0 100%/50%; 四分之一椭圆 border-radius: 100% 0 0 0; 关于border-radius的解释,语法:水平切角/垂直切角,水平切角和垂直切角里都有四
阅读全文
摘要:单侧投影 box-shadow: x方向偏移 y方向偏移 模糊半径 扩张半径 颜色 内投影/外投影 单侧投影 box-shadow: 0 5px 4px -4px black; // 扩张半径=-模糊半径 邻边投影 box-shadow: 5px 5px 10px -5px black; // 扩张
阅读全文
摘要:缓动动画 小球下落效果 @keyframes bounce { 60%, 80%, 100% { transform: translateY(80px); animation-timing-function: cubic-bezier(.215, .61, .355, 1); } 70% { tra
阅读全文
摘要:选择适合的鼠标光标 禁用光标 cursor: not-allowed; 隐藏光标 cursor: url('transparent.gif'); cursor: none; 扩大可点击区域 伪元素: button { position: relative; } button::before { co
阅读全文
摘要:背景侵入边框问题 background-clip: padding-box; background-clip的属性有content-box、padding-box、border-box, text, 默认为border-box,所以背景会侵入边框,改为padding-box,背景会裁剪到paddin
阅读全文