useIntersectionObserver 实现数据懒加载

先mark

vue2使用tailwindcss

教程在这里

ios设计规范

宽750状态栏高40px导航栏高88px导航栏功能图标48px*48px标签tab栏高98px全局左右padding 24px卡片距离20px 24px 30px 40px 60px宽1125状态栏高132px导航栏高132px导航栏...

tailwindcss如何自定义字体

首先,如果是引用外部字体的话,需要用<link>把字体引入到head里。其次,head里添加script<script> tailwind.config = { theme: { fon...

css transform用法

The transform property allows you to modify the shape, position, and size of an element without changing the layout o...

css position的用法

CSS positioning lets you set how you want an element to be positioned in the browser. It has a position property you ...

css伪类选择想要的元素

first-of-type和last-of-typeh1 .flex span:first-of-type { font-size: 0.7em;}h1 .flex span:last-of-type { font-size: 1...

让元素还在页面里,但完全看不见的一般css设置

span[class~="sr-only"] { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: ...

让页面滚动更smooth

如果页面内有锚点,点击会直接跳到锚点处,加上下面这个css就会smooth滚动。{ scroll-behavior: smooth;}

项目符号隐藏

.answers-list { list-style: none; }