【问题标题】:Removing border移除边框
【发布时间】:2019-11-28 19:21:32
【问题描述】:

我正在尝试从 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>

【问题讨论】:

  • 可以给我们出处吗?

标签: wordpress iframe


【解决方案1】:

Body 标签默认设置 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>

【讨论】:

  • 没有仍然有恼人的灰色边框,不过谢谢
  • 能给个链接看看吗?
【解决方案2】:

使用(我认为上面的拼写错误)

<!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>

【讨论】:

    猜你喜欢
    • 2020-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多