【问题标题】:Center Typeform Popup Button in SquarespaceSquarespace 中的中心字体弹出按钮
【发布时间】:2019-08-15 01:53:12
【问题描述】:

在我的 Squarespace 网站联系页面上嵌入我的 Typeform,作为“弹出”,而不是“右抽屉”或“左抽屉”,但我无法使其居中。它与左侧对齐。有任何想法吗?谢谢!

这是我的代码:

<a class="typeform-share button" href="https://artisan82interiors.typeform.com/to/KAh3xu" data-mode="popup" style="display:inline-block;text-decoration:none;background-color:#267DDD;color:white;cursor:pointer;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:50px;text-align:center;margin:0;height:50px;padding:0px 33px;border-radius:25px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;"
  data-submit-close-delay="3" target="_blank">Launch me </a>
<script>
  (function() {
    var qs, js, q, s, d = document,
      gi = d.getElementById,
      ce = d.createElement,
      gt = d.getElementsByTagName,
      id = "typef_orm_share",
      b = "https://embed.typeform.com/";
    if (!gi.call(d, id)) {
      js = ce.call(d, "script");
      js.id = id;
      js.src = b + "embed.js";
      q = gt.call(d, "script")[0];
      q.parentNode.insertBefore(js, q)
    }
  })()
</script>

【问题讨论】:

    标签: css typeform


    【解决方案1】:

    我刚刚遇到了同样的问题,并找到了解决方法,所以分享它以防它帮助你(或其他人阅读)。

    使用代码块嵌入 Typeform,并像这样包装 Typeform 代码:​​

    <center> [Your Typeform code] </center>
    

    【讨论】:

      猜你喜欢
      • 2015-07-15
      • 1970-01-01
      • 2022-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-17
      • 1970-01-01
      • 2014-07-19
      相关资源
      最近更新 更多