在 Microsoft Dynamics CRM 中更改 html 代码的位置

Where to change html code in Microsoft Dynamics CRM

Microsoft Dynamics CRM,当前具有此代码的自定义 iframe:

<div id="mainContainer" class="classname_here" style="max-width: 1900px">

我能够使用时尚的浏览器扩展将 1900px 更改为 100%:

.classname_here {
    max-width: 100% !important;
}

我想在 Microsoft Dynamics CRM 中更改此设置,这可能吗?

或者 Microsoft Dynamics CRM 设置的 1900px 是一成不变的,无法更改?

谢谢!

我在 Microsoft Dynamics CRM 论坛上问了同样的问题,并从 "Necdet Saritas":

那里得到了一堆例子

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/363144/where-to-change-html-code-in-microsoft-dynamics-crm

https://www.inogic.com/blog/2009/02/automatically-resize-the-iframe-to-adjust-to-the-form-size/

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/103395/setting-iframe-height-programmatically

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/185292/iframe-width-and-height-in-crm-2015-onpremise

https://dynamicsninja.blog/2018/07/21/change-webresource-height-dinamicaly/

为我标记为已解决:

在 onLoad 事件脚本中试试这个:

var container = parent.document.getElementById("mainContainer");
if (container !== null)
    container.style = "max-width: 100%"; 

但这是不受支持的方式