简体   繁体   English

如何在 Dynamics CRM 2015 Update 1 online 中将仪表板的宽度设置为 100%

[英]How to set width of the dashboard to be 100% in Dynamics CRM 2015 Update 1 online

I'm trying to make the width of the dashboard to be 100%我正在尝试使仪表板的宽度为 100%

While inspecting the html there is a div element with class=".ms-crm-Dashboard-Area" which has max-width:1920px; min-width:400px在检查 html 时,有一个class=".ms-crm-Dashboard-Area"的 div 元素,它的max-width:1920px; min-width:400px max-width:1920px; min-width:400px

I tried adding JavaScript web resource, added the file but when I add it to the section I get "Invalid web resource type for form..."我尝试添加 JavaScript Web 资源,添加了文件,但是当我将它添加到该部分时,我得到“表单的 Web 资源类型无效...”

$("ms-crm-Dashboard-Area").css("max-width","2500px");

So could someone please tell me how to get rid of the max-width and set it to 100% or to change the max-width via JavaScript?那么有人可以告诉我如何摆脱最大宽度并将其设置为 100% 或通过 JavaScript 更改最大宽度吗?

Many thanks,非常感谢,

I'm pretty sure that isn't a supported change - so there will be no easy way to do it and you shouldn't try.我很确定这不是受支持的更改 - 所以没有简单的方法可以做到,你不应该尝试。

If an upgrade changes the DOM layout your script will break.如果升级更改了 DOM 布局,您的脚本将中断。 The dashboard CSS is pretty much fixed as Microsoft have provided it.仪表板 CSS 几乎是固定的,因为 Microsoft 提供了它。 All we can do is move the elements around inside using the out of the box layout controls.我们所能做的就是使用开箱即用的布局控件在内部移动元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM