Home   Single Page

contentStyleプロパティ

contentStyleプロパティを指定することでウィンドウのコンテンツブロックの外見と印象を変更することができます。

<window title="My Window" border="normal" width="200px" contentStyle="background:yellow">
    Hello, World!    
</window>

スクロール可能なウィンドウ

contentTypeの代表的な使用方法は以下のようにスクロール可能なウィンドウにすることです。

<window id="win" title="Hi" width="150px" height="100px" contentStyle="overflow:auto" border="normal">
This is a long line to spead over several lines, and more content to display.
Finally, the scrollbar becomes visible.
This is another line.
</window>