Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么配置下划线的?文档中好像没有提到,按照源码中改也没用生效,有例子吗 #57

Open
fhj857676433 opened this issue Nov 5, 2020 · 2 comments

Comments

@fhj857676433
Copy link

No description provided.

@Ccptsoap
Copy link

Ccptsoap commented Jul 5, 2021

我也在找web端给文本加下划线的方案,找到来这里,反而对长按出菜单这一功能没有需求。
后来查到浏览器有原生支持的text-decoration-style CSS属性可以给文本加下划线,不知道能不能帮到你。

@langzishuai
Copy link

我看了源码,还有他的commit记录,他目前标注的类型大概是两类:高亮(默认)和下划线。可以在new EasyMark(option)时,在option这个object中,加入

highlight: { color: '#40f0f2', //指定颜色 type: 'underline' //不指定的话默认是highlight }

通过这个type指定下划线。(亲测有效)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants