Zendesk Web Widget的左侧和底部被切断

时间:2018-09-21 15:22:58

标签: asp.net-mvc-5.2 zendesk

我将Web窗口小部件嵌入在布局页面上的ASP.NET MVC应用程序中。当显示时,“反馈”按钮的左侧以及“联系人”表单在左侧被切除大约20像素。

应用程序的作者使用以下代码实现了Widget:

<script>
  /*<![CDATA[*/window.zEmbed || function (e, t) {
    var n, o, d, i, s, a = [], r = document.createElement("iframe");
    window.zEmbed = function () {
      a.push(arguments)
    }, window.zE = window.zE || window.zEmbed, r.src = "javascript:false", r.title = "", r.role = "presentation", (r.frameElement || r).style.cssText = "display: none", d = document.getElementsByTagName("script"), d = d[d.length - 1], d.parentNode.insertBefore(r, d), i = r.contentWindow, s = i.document;
    try { o = s } catch (e) { n = document.domain, r.src = 'javascript:var d=document.open();d.domain="' + n + '";void(0);', o = s } o.open()._l = function () {
      var o = this.createElement("script");
      n && (this.domain = n), o.id = "js-iframe-async", o.src = e, this.t = +new Date, this.zendeskHost = t, this.zEQueue = a, this.body.appendChild(o)
    }, o.write('<body onload="document._l();">'), o.close()("https://assets.zendesk.com/embeddable_framework/main.js","REDACTED.zendesk.com");
/*]]>*/
</script>

此设置存在大小问题,因此我在Zendesk网站上的“小部件设置”屏幕上尝试了小部件脚本的新副本。代码如下:

<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=41cfe0e0-8bab-4938-8897-30c4a1bcda16"></script>

使用此脚本段,“反馈”按钮将正确显示,但表单仍在左侧被切断,并且仅在“提交”和“取消”按钮的顶部四分之一可见。表格。

该如何解决此问题

0 个答案:

没有答案