我需要在CRM Dynamics 2016中更改CRM表单通知元素的背景颜色以进行试用。我知道它不受支持,但这是供最终用户试用的。 div元素的详细信息如下-
<div class="Notifications Notifications-strict Notifications-strict-bottom" id="crmNotifications" style="height:; display: block;" size="3" maxheight="51">
我试过使用
window.parent.getElementById('crmNotifications').style.backgroundColor;
但没有运气。我还听说过DOM元素无法从实体表单中访问。有没有一种方法可以更改背景颜色。
最佳答案
document.getElementById("crmNotifications").style.backgroundColor = "blue"