【发布时间】:2014-11-09 00:31:49
【问题描述】:
我在 php 中有一个 iFrame,我想将其显示为至少水平居中,这是我的代码。如何编辑它以使其在浏览器中水平显示中心
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
</head>
<body>
<div>
<iframe src="https://<??>" width="850" target="_parent" height="850" scrolling="no" style="overflow:hidden; border:none;" style = "display:block;"></iframe>
</div>
</body>
</html>
【问题讨论】:
-
去掉多余的样式属性,合二为一:
style="border:none; width:850px; margin: 20px auto;"
标签: html