Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

複合メニュー・スタイルのカスタマイズ

MenuComposite.clsXData Style ブロックに、CSS スタイルを追加できます。

次のように、MenuComposite.clsXData Style ブロックを更新して、クラスをコンパイルします。


XData Style
{
<style type="text/css">
/*Styles for components in this composite component*/
  .title {
          background: #C5D6D6;
          color: black;
          font-size: 1.5em;
          font-weight: bold;
          padding: 5px;
          border-bottom: 1px solid black;
          text-align: center;
    }
/* Default style overrides*/
/* Override default menu item style */
  a.menuItem {
         font-size: 0.9em;
         color: black;
   }
  a.menuItemDisabled {
        font-size: 0.9em;
        color: black;
  }
</style>
}

このスタイル定義について、以下のことに注意してください。

  • 最初の定義は、<html> コンポーネントのスタイルを制御します。セレクタとして、.title が使用されます。これは、<html> 要素の id 値と合致します。

  • 残りの CSS 定義は、menuItem コンポーネントの既定のスタイルをオーバーライドします。

FeedbackOpens in a new tab