css,html一些技巧

css技巧

多个类,条件实现类

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

提升权重

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

高度与宽度相等

       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>
原文地址:https://www.cnblogs.com/icemiaomiao3/p/15766855.html