【发布时间】:2016-04-22 01:56:57
【问题描述】:
我正在尝试通过 iframe 将 my blog 集成到我的网站中。但是,使用这种方法,我必须以像素为单位给出高度和宽度。不过,我希望博客适合屏幕。有没有办法做到这一点?
编辑:下面的答案表明我更改了我的 CSS。那么我该如何处理我的 html 中的“宽度”和“高度”变量呢?这是页面的完整html代码。
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Shiloh Janowick's Blog!</title>
<link rel="shortcut icon" href="pics/favicon.ico" type="image/x-icon">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
</head>
<body>
<iframe width="" height="" src="http://shilohgameblog.wordpress.com" frameborder="0" allowfullscreen></iframe>
</body>
</html>
我没有指定宽度和高度,因为我不知道之后要放什么。
【问题讨论】:
标签: html wordpress iframe blogs