Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
html-shot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
劳工
html-shot
Commits
15c5f20c
Commit
15c5f20c
authored
Jan 12, 2021
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fontStyle
parent
d78951e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
readme.md
readme.md
+2
-0
dom-parser.ts
src/dom-parser.ts
+1
-1
No files found.
readme.md
View file @
15c5f20c
...
...
@@ -24,3 +24,5 @@ document.body.appendChild(img);
*
仅支持img和text两种元素
*
不支持transform变换
*
文本仅只是Arial字体,建议给元素设置为Arial字体
*
不支持z-index样式
*
不支持所有滤镜
src/dom-parser.ts
View file @
15c5f20c
...
...
@@ -4,12 +4,12 @@
const
styleKeys
=
[
'fontSize'
,
'fontFamily'
,
'fontWeight'
,
'textAlign'
,
'color'
,
'wordWrap'
,
'borderRadius'
,
'fontStyle'
,
]
export
function
parseDom
(
el
:
HTMLElement
=
document
.
body
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment