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
533cf735
Commit
533cf735
authored
Jan 12, 2021
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加text
parent
d40fce2e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
dom-parser.ts
src/dom-parser.ts
+1
-0
test.html
test.html
+3
-2
No files found.
src/dom-parser.ts
View file @
533cf735
...
@@ -36,6 +36,7 @@ export function parseDom(el: HTMLElement) {
...
@@ -36,6 +36,7 @@ export function parseDom(el: HTMLElement) {
vNode
=
{
vNode
=
{
type
:
0
,
type
:
0
,
text
,
}
}
}
}
}
}
...
...
test.html
View file @
533cf735
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
left
:
10px
;
left
:
10px
;
top
:
10px
;
top
:
10px
;
text-align
:
center
;
text-align
:
center
;
word-wrap
:
normal
;
width
:
100px
;
word-wrap
:
break-word
;
}
}
</style>
</style>
</head>
</head>
...
@@ -28,7 +29,7 @@
...
@@ -28,7 +29,7 @@
<div
id=
"poster"
class=
"poster"
>
<div
id=
"poster"
class=
"poster"
>
<img
class=
"avatar"
src=
"//yun.duiba.com.cn/aurora/14e3d0fa0e1ff54553a2c8c094b1caffd90f0a43.png"
/>
<img
class=
"avatar"
src=
"//yun.duiba.com.cn/aurora/14e3d0fa0e1ff54553a2c8c094b1caffd90f0a43.png"
/>
<p
class=
"ppp"
>
<p
class=
"ppp"
>
a
a
<br/><b>
ddd
</b>
a
a
<br/>
bcdefghij
</p>
</p>
</div>
</div>
...
...
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