1

MS Dynamics CRM 2013 は比較的新しいため、これに関する回答を見つけることができませんでした。うまくいけば、ここの誰かがこれを行う方法を発見しました。

MS Dynamics CRM 2013 フォームのヘッダー タイルの外観を変更したいと考えています。タイルを広くしたいのですが、それは選択肢ではないと思います。少なくともやりたいことは、フィールドのフォントを小さくして、各タイルにより多くの情報が収まるようにすることです。

誰でもこれに光を当てることができますか?CSS や Xrm.Page が見つかりません。そのオブジェクトへの参照。

ありがとう!

4

2 に答える 2

1

Before I point out the .css which needs to be modified, this is unsupported and at your own risk! Any future rollups might break this or cause issues.

Since you're speaking of tiles, I believe you're referring to 'Account', 'Contact', 'Leads', etc.

To change the font size, you need to manually edit a file from where Dynamics CRM 2013 is installed. The path is : C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_controls\navbar and the file name is navbar.css.aspx.

You need to change the font size for the following css class:

.navActionButtonLabel
{
color: white;
text-decoration: none;
display: block;
font-size: 9.75pt;
margin-left: 10px;
margin-right: 10px;
}

Change the font-size property, save it and give an IISRESET, and it should work. Always remember to take a backup in case anything goes wrong.

于 2013-12-06T05:38:36.460 に答える
0

この投稿が古いことは知っていますが、Dynamics CRM 2015 でもこの問題が解決しないことがわかったので、この関数を作成し、「LoadChangeHeaderTiles」関数をフォームの「OnLoad」イベントに追加しました。

function LoadChangeHeaderTiles() {
   changeHeaderTileFormat();
   setInterval(changeHeaderTileFormat, 1000);
}

function changeHeaderTileFormat() {
   var headertiles = document.getElementsByClassName("ms-crm-HeaderTileElement");
   if (headertiles != null) {
      for (var i = 0; i < headertiles.length; i++) {
         headertiles[i].style.width = "175px"; 
      }
   }
}

DOM 操作がまだサポートされていないことはわかっていますが、元の CRM ファイルは変更されていないため、後でいつでも onload イベントからこのコードを削除でき、害はありません。

于 2015-08-06T19:18:15.640 に答える