更新时间:2021-08-28 09:12:23
http://***.com/questions/22984478/convert-div-into-image-data-using-jquery [ ^ ]
http:// css-power。 blogspot.in/2013/06/div-width-400px-height-400px-background.html [ ^ ]
http://jsfiddle.net/8ypxW/3/ [ ^ ]
希望它有所帮助!
-KR
http://***.com/questions/22984478/convert-div-into-image-data-using-jquery[^]
http://css-power.blogspot.in/2013/06/div-width-400px-height-400px-background.html[^]
http://jsfiddle.net/8ypxW/3/[^]
Hope it helps !
-KR
没有看到你想要做的事情的背景,我可以给你一个应该给你所需要的选项。
假设你的< div>有id ='xyz'。
图像显示可能类似于:
Not seeing the context of what you want to do, I can give you a option that should give you what you need.
Let's assume your <div> has id='xyz'.
An image presentation could be something like:
<img src='my.gif'>
然后你可以把它插入你的< div>使用以下内容:
Then you can insert it into your <div> with the following:
<script type='text/javascript'>
document.getElementById('xyz').innerHTML="<img src='my.gif'>";
</script>