forked from tsayen/dom-to-image
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
append loaded html to body instead of full reload
- Loading branch information
Showing
2 changed files
with
46 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
#dom-node { | ||
border: 1px solid black; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
|
||
.red { | ||
background-color: red; | ||
} | ||
|
||
.green { | ||
background-color: green; | ||
} | ||
|
||
.blue { | ||
background-color: blue; | ||
} | ||
|
||
.red, | ||
.green, | ||
.blue { | ||
height: 33.333333%; | ||
width: 100%; | ||
border: 1px solid lightgrey; | ||
border-radius: 6px; | ||
} | ||
#dom-node { | ||
border: 1px solid black; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
|
||
</style> | ||
</head> | ||
.red { | ||
background-color: red; | ||
} | ||
|
||
<body> | ||
<div id="dom-node"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
<div class="blue"></div> | ||
</div> | ||
</body> | ||
.green { | ||
background-color: green; | ||
} | ||
|
||
</html> | ||
.blue { | ||
background-color: blue; | ||
} | ||
|
||
.red, | ||
.green, | ||
.blue { | ||
height: 33.333333%; | ||
width: 100%; | ||
border: 1px solid lightgrey; | ||
border-radius: 6px; | ||
} | ||
</style> | ||
<div id="dom-node"> | ||
<div class="red"></div> | ||
<div class="green"></div> | ||
<div class="blue"></div> | ||
</div> |