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

add component: clamp-text; alpha release #7

Merged
merged 3 commits into from
Dec 12, 2019
Merged

add component: clamp-text; alpha release #7

merged 3 commits into from
Dec 12, 2019

Conversation

chenyong
Copy link
Member

Previews http://fe.jimu.io/jimo-basics/#/clamp-text .

用到了 Webkit 私有属性, 目前 Chrome, Safari 11, Firefox 72 看起来正常. IE11 不确定但用了 text-overflow 可能有效果. 如果后面需要完整的支持, 只能探测浏览器使用 https://github.com/josephschmitt/Clamp.js 进行 DOM 操作来实现效果了.

@chenyong
Copy link
Member Author

留着供参考 happylindz/blog#12

@chenyong chenyong merged commit 2248b82 into master Dec 12, 2019
@chenyong chenyong deleted the clamp-text branch December 12, 2019 07:26
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

Successfully merging this pull request may close these issues.

1 participant