css,html一些技巧

css技巧

多个类,条件实现类

 :class="[i2 === 0 ? '' : 'btop', 'vcenter']"

提升权重

 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15) !important;

高度与宽度相等

      width: 75px;
      zoom: 1; // 高度是宽度的1倍
      border-radius: 50%;

定义内部最近的那个div样式

header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  > div {
      display: flex;
      align-items: center;}
}

文字间距

letter-spacing: 0.2em;

html技巧

html中查看数据长啥样

<pre>{{ scope.row.children }}</pre>
posted @ 2022-01-05 14:28  ice猫猫3  阅读(22)  评论(0编辑  收藏  举报