讓iframe 100%填充頁面代碼
要想讓iframe 高100%,就得設(shè)置它父容器的詳細(xì)高度。
比如:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
<style>
html,body{
height:100%;
}
</style>
</head>
<body>
<iframe height="100%" width="100%" src=http://www.goudiannao.com/“>
</body>
</html>
posted on 2010-08-23 10:09
sanmao 閱讀(11833)
評論(0) 編輯 收藏