小编Not*_*son的帖子

水平居中嵌入Google Doc?

我是 HTML 和 CSS 新手,一直在通过 HTML for dummies 学习。

不管怎样,我想知道如何水平居中嵌入的谷歌文档。

div#iframe-wrapper iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  right: 100px;
  height: 100%;
  width: 100%;
}
Run Code Online (Sandbox Code Playgroud)
<body bgcolor="#414141">
  <title>Rules Page</title>
  <div class="center">
    <iframe width='85%' height='100%' src="https://docs.google.com/document/d/1G1xhqhSK2Ge8diyXELZ3cNvFJj-5wK-0_1VMjCfQR_I/pub?embedded=true">    </iframe>
  </div>
</body>
Run Code Online (Sandbox Code Playgroud)

html css iframe

5
推荐指数
1
解决办法
4282
查看次数

标签 统计

css ×1

html ×1

iframe ×1