![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
@SIMIN
一份耕耘,一份收获
展开
-
浏览器滚动的两种方式
1, auto: 默认值, 平时我们网页上看到的滚动就是auto这个属性2,smooth:平滑滚动保证兼容性进行如下设置:html,body{ scroll-behavior: smooth;}平时我们想要简单的锚点跳转达到平滑滚动的效果,设置此属性便可轻松解决~~~~~~当然你也可以利用动画通过设置scrollTo()来实现平滑滚动,而且动画可以实现复杂的逻辑判断进而达到...原创 2019-11-01 17:43:58 · 604 阅读 · 1 评论 -
去掉input[type=“number“]的默认样式
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{ -webkit-appearance: none !important; }/* chrome */input[type="number"]{ -moz-appearance:textfield;}/* firefox */原创 2021-02-20 13:38:06 · 323 阅读 · 0 评论