---css
<style type="text/css">
img{width: 10px;height: 10px;background-color: green;}</style>
--html
<body>
<h1>标题</h1>
<div id='div1'></div>
<button οnclick="createImg()">添加图片</button>
</body>
---js
<script type="text/javascript">
---css
<style type="text/css">
img{width: 10px;height: 10px;background-color: green;}</style>
--html
<body>
<h1>标题</h1>
<div id='div1'></div>
<button οnclick="createImg()">添加图片</button>
</body>
---js
<script type="text/javascript">