HTML を iFrame に設定する必要があります。(iFrame src は null です。) たとえば、Web メソッド呼び出しから次の文字列を取得します: string s =
<html>
<head>
<style type="text/css"> <!-- .some dynamicaly generated css> </style>
<link id="css1" type="text/css" rel="stylesheet" href="1.css" /></head>
<body style="padding:0; margin:0;" tabIndex="-1">
--- some HTML elements ------
<script type="text/javascript">
---some script ---
</script>
</body>
</html>
この文字列を iFrame に設定する必要があります。しかし、iframe.innerHTML を使用すると、head タグと body タグが取り除かれます。
これで私を助けてもらえますか?文字列に何かを追加するか、iframe にプロパティを追加する必要がありますか?
前もって感謝します。