在ASP.net中使用JS将html div标签转换为图像 [英] Convert html div tag to image using JS in ASP.net

查看:52
本文介绍了在ASP.net中使用JS将html div标签转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有要求.使用asp.net中的javascript将HTML DIV标签转换为图像的说明.

有什么想法怎么做吗?

谢谢.

Hi All,

I have req. of converting HTML DIV tag to image using javascript in asp.net.

is there any idea how to do it?

Thanks.

推荐答案

HTML div和Image完全是两个不同的控件/标记.为什么或哪种情况迫使您这样做?

假设您必须在客户端找到div标签,然后将其替换为image标签.您可以使用div标签的ID属性进行查找.
HTML div and Image are totally two different controls/markup. Why or what kind of scenario is forcing you to do it?

Assuming, you have to, then in client side, find the div tag and replace the same with an image tag. You can use ID atributre of div tag to find.


这篇关于在ASP.net中使用JS将html div标签转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆