[英]Where to change html code in Microsoft Dynamics CRM
Microsoft Dynamics CRM, custom iframe that currently has this code: Microsoft Dynamics CRM,当前具有以下代码的自定义 iframe:
<div id="mainContainer" class="classname_here" style="max-width: 1900px">
I was able to change 1900px to 100% using stylish browser extension:我能够使用时尚的浏览器扩展将 1900px 更改为 100%:
.classname_here {
max-width: 100% !important;
}
I want to change this in Microsoft Dynamics CRM, is that possible?我想在 Microsoft Dynamics CRM 中更改此设置,这可能吗?
Or is the 1900px set by Microsoft Dynamics CRM set in stone and cannot be changed?还是 Microsoft Dynamics CRM 设置的 1900px 是一成不变的,无法更改?
Thanks!谢谢!
At onLoad event script try this:在 onLoad 事件脚本中试试这个:
var container = parent.document.getElementById("mainContainer");
if (container !== null)
container.style = "max-width: 100%";
But this is unsupported way但这是不受支持的方式
I asked the same question in the Microsoft Dynamics CRM forum and got a bunch of examples for this from "Necdet Saritas":我在 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://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://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/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://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/
https://dynamicsninja.blog/2018/07/21/change-webresource-height-dinamicaly/
Marking this as solved for me:将此标记为已为我解决:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.