A maneira mais simples de usar o iframe

1, iframeTest.html
foco: <a href="2.html" target="i">atributo de destino
deve ser igual ao <iframe src="" id="iframe1Id" name="i" width="100%"></iframe>nome do atributo
nome

<html>
<head>
<title>iframe test</title>
</head>
<body>
<div><iframe src="" id="iframe1Id" name="i" width="100%"></iframe></div>           
<a href="2.html"  target="i"> 点击 </a> <!--在div中显示2.html中的内容-->
</body>
</html>

2、2.html
<html>
<head>
<title> teste iframe </title>
</head>
<body>
este é o 2.html
</body>
</html>

Acho que você gosta

Origin www.cnblogs.com/homehtml/p/12683642.html
Recomendado
Clasificación