简体   繁体   中英

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%

While inspecting the html there is a div element with class=".ms-crm-Dashboard-Area" which has 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..."

$("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?

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. The dashboard CSS is pretty much fixed as Microsoft have provided it. All we can do is move the elements around inside using the out of the box layout controls.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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