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

Canvas发展了这么多年了,为什么始终不见有canvas的前端页面框架呢? #17

Open
Congritulation opened this issue Aug 17, 2020 · 2 comments

Comments

@Congritulation
Copy link

我留意这各方向已经很久了,但是这么多年了,一直没有发现有人做出一个可以大体替代html标签和css的canvas前端框架,我也不知道为啥。

@lujq
Copy link

lujq commented Dec 16, 2020

最近正好在学习这方面材料,有一篇文章提到:
主要是canvas只是一个位图,本身没有语义,如果要在它上面实现UI,等于HTML语言已有的东西都要再发明一遍,比如如何实现超链接、如何实现CSS效果等等。一些最简单的东西都变得很麻烦,因为canvas不是自适应的(responsive),文字在哪里断行,都要自己计算,而且用户也无法选中文本。另外,怎么让搜索引擎检索网页,解决起来也不是很容易。
原文出处:https://www.ruanyifeng.com/blog/2015/02/future-of-dom.html

@lin-calvin
Copy link

那不就变成flutter这种自绘ui框架了吗?出了像素抑制性和可移植性外都是缺点

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