开发者

Why my CSS is not working with the XUL app?

开发者 https://www.devze.com 2023-01-15 01:57 出处:网络
My xul app: <?xml version=\"1.0\"?> <?xml-stylesheet href=\"main.css\" type=\"text/css\"?> <window id=\"main\" title=\"MY TEST\" width=\"640\" height=\"480\" xmlns=\"http://www.mozill

My xul app:

<?xml version="1.0"?>
<?xml-stylesheet href="main.css" type="text/css"?>

<window id="main" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    <listbox id="mainList">
      <listitem label="Butter Pecan"/>
      <listitem label="Chocolate Chip"/>
      <listitem label="Raspberry Ripple"/>
      <listitem label="Squash Swirl"/>
    </listbox>
</window>
开发者_Go百科

The main.css:

body {background-color:#b0c4de;}

and the result is a transparent window, why the color is not filling?


I know nothing about XUL, but I would assume that the style isn't working because there isn't a body tag in your XUL code.

Try this:

#main {background-color:#b0c4de;}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号