ant-design-vue-pro

301 阅读1分钟

1. 修改样式

  • scoped 表示只在当前页面生效
  • ">>>" 确定更改域
  • 在页面中调整css 样式,只需要将需要被覆盖的部分替换即可。
 <style scoped>                
  .text-main {
    margin-left: 15%;
    margin-right: 15%;
  }
  >>>.ant-card-meta-title {
    white-space: normal;     # 原来的样式为 white-space: pre;
  }
</style>