Commit 533cf735 authored by rockyl's avatar rockyl

增加text

parent d40fce2e
...@@ -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,
} }
} }
} }
......
...@@ -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">
aa<br/><b>ddd</b>a a<br/>bcdefghij
</p> </p>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment