iframe not displaying at all on chrome and safari. It works on firefox
I really don't know why but when I try to display an iFrame into google chrome and safari it don't work.
The pure source code in chrome looks like that:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
开发者_开发技巧 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<iframe width="560" height="349" src="http://www.youtube.com/embed/uqfY3xnv6sE" frameborder="0" allowfullscreen></iframe> <form name="submitForm" method="get" action="myPage.php">
<label>
<input type="text" name="url"/>
</label>
<input type="submit" name="button" value="Submit"/>
</form>
</body>
</html>
But when I 'inspect element' in chrome, the result is that:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<iframe width="560" height="349" src="" frameborder="0" allowfullscreen=""></iframe> <form name="submitForm" method="get" action="myPage.php">
<label>
<input type="text" name="url">
</label>
<input type="submit" name="button" value="Submit">
</form>
</body></html>
Notice that there is absolutely no "src" in "inspect element". Firefox does display the iframe.
精彩评论