我正在尝试从iframe框中删除灰色边框,但遇到了困难。
代码如下,去掉了源代码。我还附上了一个显示边界的screenshot
<!DOCTYPE html>
<html>
<head>
<style></style>
</head>
<body>
<iframe
frameborder="0"
height="100%"
src=""
width="100%"
>
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>发布于 2019-11-29 03:28:03
Body标签通过default.Try this放置8px的边距。
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<style>
body{ margin:0px;padding:0px; }
</style>
<iframe
frameborder="0"
height="100%"
src=""
width="100%"
>
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>发布于 2019-11-29 18:30:21
使用(我认为上面的拼写错误)
<!DOCTYPE html>
<html>
<head>
<style></style>
</head>
<body>
<iframe
frameBorder="0"
height="100%"
src=""
width="100%"
>
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>https://stackoverflow.com/questions/59095115
复制相似问题