0
가능한 중복 : 나는 프로그래밍 방식으로 이미지에 DIV의 내용을 내보낼 수 있도록 노력하겠습니다
Take a screenshot of a webpage with javascript?DIV의 내용을 이미지로 프로그래밍 방식으로 내보내는 방법이 있습니까?
? 어떻게해야합니까? 어떤 코드가 서버 코드 또는 클라이언트 코드를 수행 할 수 있습니까? 감사합니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div id="a">
Content to export to image
</div>
<div id="b">
Normal text
</div>
</body>
</html>
[http://stackoverflow.com/questions/60455/take-a-screenshot-of-a-webpage-with-javascript](http://stackoverflow.com/questions/60455/take- a-screenshot-of-a-webpage-with-javascript) – Will