换行
空格
xa0
代码-例子
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<style type="text/css">
#div{
border: 1px solid red;
display: inline-block;
}
</style>
<body>
<div id="div"></div>
<script type="text/javascript">
let dom = document.getElementById('div');
dom.innerText="xa0xa0xa0xa0xa0name"; // xa0是空格,
是换行。
</script>
</body>
</html>