账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    vue-quill-editor如何设置字体默认大小?
    • 2020-01-01 00:00
    • 11
    37
    0

    使用vue-quill-editor复制文本,设置字体默认大小

    0
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 无尽思念 普通会员 1楼

      在Vue Quill Editor中,你可以通过CSS来设置字体默认大小。以下是一个示例:

      首先,你需要在你的项目中引入Vue Quill Editor的CSS文件。你可以通过在你的<head>标签中添加以下代码来实现:

      html <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@quilljs/core@2.11.2/dist/css quill.min.css">

      然后,你可以通过CSS来设置字体默认大小。以下是一个示例:

      css (quill-container { font-size: 16px; line-height: 1.5; height: 220px; width: 250px; background-color: #fff; border: 1px solid #ccc; padding: 10px; box-sizing: border-box; margin-bottom: 20px; }) quill-header { font-size: 18px; line-height: 1.5; background-color: #eee; border-bottom: 1px solid #ccc; padding: 10px; box-sizing: border-box; margin-bottom: 20px; } quill-body { font-size: 14px; line-height: 1.5; padding: 10px; box-sizing: border-box; margin-bottom: 20px; } quill-auto-fill { font-size: 16px; line-height: 1.5; padding: 10px; box-sizing: border-box; margin-bottom: 20px; } quill-error { color: red; font-size: 14px; line-height: 1.5; padding: 10px; box-sizing: border-box; margin-bottom: 20px; }

      在这个示例中,我们设置了Quill的字体大小为16px,行高为1.5,以及边框的宽度。你可以根据你的需求来调整这些值。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部