yantaicy
yantaicy
  • 发布:2024-01-29 10:35
  • 更新:2024-01-29 15:11
  • 阅读:75

editor的内容怎么能垂直居中

分类:uni-app

比如editor设置高为200px,输入的内容始终保持垂直居中。好像是无法实现?

2024-01-29 10:35 负责人:无 分享
已邀请:
JXWang

JXWang

<style lang="less">  
:deep(.ql-container .ql-editor){  
    display: flex;  
    flex-direction: column;  
    justify-content: center;  
}  
</style>

这样就可以啦,使用样式穿透,修改组件的默认样式

要回复问题请先登录注册