Commit 119a611 1 parent 02309f6 commit 119a611 Copy full SHA for 119a611
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ PR 请求可以 [点此查看](https://github.com/dream-num/univer/pull/2631)。
41
41
42
42
## 解决方案
43
43
44
- DOM 树是树结构,我们可以采用广度优先遍历的方式 ,将上层样式传递到下层节点模拟计算样式,来避免使用 ` getComputedStyle ` 。节点样式是通过样式选择器的优先级,来确定最终的样式。了解这两个基础逻辑后,我们就可以开始编码了。
44
+ DOM 树是树结构,我们可以采用深度优先遍历的方式 ,将上层样式传递到下层节点模拟计算样式,来避免使用 ` getComputedStyle ` 。节点样式是通过样式选择器的优先级,来确定最终的样式。了解这两个基础逻辑后,我们就可以开始编码了。
45
45
46
46
### 解析 style 标签,将标签的样式存储在 Map 中
47
47
@@ -112,4 +112,4 @@ export default function parseToDom(rawHtml: string) {
112
112
## 参考阅读
113
113
114
114
- [ Univer 架构] ( https://univer.ai/zh-CN/guides/sheet/architecture/univer )
115
- - [ Chromium 渲染流水线——字节码到像素的一生] ( https://zhuanlan.zhihu.com/p/574069391 )
115
+ - [ Chromium 渲染流水线——字节码到像素的一生] ( https://zhuanlan.zhihu.com/p/574069391 )
You can’t perform that action at this time.
0 commit comments