如何使用html在iframe中放置图片?

问题描述 投票:0回答:1

我正在尝试将图像放置在我研究过的iframe中,但找不到我需要的图像。

这是我所做的,

html

<div class="modal-body description">
                <div class="modal-body description">
                    <table class="ui very basic celled table">
                        <tr>
                            <td>
                                <iframe frameborder="0" width="300" height="200" id="sigImage"  onloadeddata="window.frames.scrollTo(300,500)"  src="~/Content/images/signature.png" name="sigImage"></iframe>
                            </td>

                        </tr>
                    </table>                    
                </div>  
            </div>

[这里尝试使用该方法(首先使用onloadonloadeddata根据我的需要定位图像。基本上我有一张图片,我想在加载时将图片的一部分放在iframe中。然后,用户可以滚动浏览图像以查看图像的其他区域。我该如何实施?帮助将不胜感激。

html css iframe position
1个回答
0
投票

我知道一种方法,但是您必须使用PHP,您将在其中存储图像文件的路径。之前已经讨论过。

© www.soinside.com 2019 - 2024. All rights reserved.