随笔分类 - css
摘要:<div id="parent"> <br /> <br /> <br /> <br /> <div class="myElement">Hello!</div> </div> #parent { height: 2000px; } .myElement { position: sticky; to
阅读全文
摘要:@at-root [dir='rtl'] & .hide-types-icon { transform: rotateY(180deg); }
阅读全文
摘要:<div class="box-item-num white"> <span class="num">x <b>12</b></span> </div> &-num { width: 46px; height: 26px; font-size: 12px; position: absolute; l
阅读全文
摘要:需求为data数据中,多个数组,数组中的项对应一个盒子,盒子需要有逐个开启的动画。如下例子为 Vue3 const itemArr = Array(15).fill(1) const itemArr2 = Array(10).fill(2) const dataArr = [ { title: 'C
阅读全文
摘要:单行省略号 .demo{ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;
阅读全文

浙公网安备 33010602011771号