Css总结

326 阅读1分钟

1. antd Popover组件样式修改

修改样式使用className不生效 antd得样式覆盖不了

原因是: 不支持className 而是toolip得overlayClassName

&::伪类样式

&::after 是在此标签得后面添加样式

&::before 是在此标签得前面添加样式

.vt{
 width:400px;
 &::after{
  content:'';
  position:absolute;
  top:40px;
 }
 &::before{
  content:'';
  position:absolute;
  top:40px;
 }
}