在页面中嵌入其它页面,首先想到的就是IFrame,然后今天我在Channel9发现了下页这种方法,但是测试的时候发现速度比IFrame速度慢.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>mouseover image position</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

<style type="text/css">
body
   {
    background-color:#aaaaff;
   }
#one
   {
    position:absolute;
    left:50%;
    top:50%;
    margin:-150px 0 0 -250px;
   }
object
   {
    width:500px;
    height:300px;
    border:solid 1px #000000;
   }

</style>

<script type="text/javascript">
function updateObjectIframe(which){
    document.getElementById('one').innerHTML = '<'+'object ><\/object>';
}
</script>

</head>
<body>

<div >this is an object test not an iframe test</a>
</div>

</body>
</html>

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-07-15
  • 2021-10-26
猜你喜欢
  • 2021-07-17
  • 2021-06-20
  • 2021-12-07
  • 2022-12-23
  • 2022-03-02
  • 2021-11-25
  • 2021-08-10
相关资源
相似解决方案