iframe 中显示内嵌页的局部

Posted on 2010-12-18 03:21  Leon0812  阅读(344)  评论(0编辑  收藏  举报

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Untitled</title>   
</head>
<body>
 
<center>

 

<input name="btn" id="btn" value="English" type="button" onclick="javascript:document.getElementById('f').src='http://maps.google.com/?q=flowershops+in+UK'"/>
<input name="btn" id="Button1" value="France" type="button" onclick="javascript:document.getElementById('f').src='http://maps.google.com/?q=flowershops+in+France'"/>

<!--<div style=" width:600px; height:600px; overflow:hidden; background-color:Gray; border:1px solid #000">
<iframe id="f" name="f" height="750px" width="1000px" style="padding-top:0px;margin-top:-124px;border:0px;"></iframe>
</div>-->

 
<div style="width:620; height:600; overflow:hidden; border:1px solid #000">
<div style="margin-top: -128px; margin-left: -390px;" align="center">
<iframe style="text-align: center;" src=""  id="f"  marginwidth="0" marginheight="0" width="1010" height="755" frameborder="no" height="548" scrolling="no"></iframe>
</div>
 </div>

 </center>
 </body>
 </html>

Copyright © 2024 Leon0812
Powered by .NET 8.0 on Kubernetes