0
나는 다음과 XUL을 다음 CSS와왜 배경이 보이지 않습니까? (CSS 문제)
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://bartest/skin/bartest.css" type="text/css"?>
<window width="400" height="300"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox id="backBox">
<hbox id="frontBox">
<!-- this label is needed, else this box doesn't show up -->
<label value="" />
</hbox>
</vbox>
</window>
는 :
#backBox {
background-color: red;
width: 200px;
position: fixed;
left: 0;
}
#frontBox {
background-color: blue;
width: 100px;
position: fixed;
left: 0;
}
은 내가 200 픽셀 빨간색 상자를 볼 것으로 예상하고, 내부 100 픽셀 파란색 상자. 그러나 내가 보는 것은 단지 100px 파란색 상자입니다.
빨간색 상자 (id = "backBox")가 표시되지 않는 이유는 무엇입니까?
감사! 또한, 나는 frontBox에서 (그리고 frontBox에서만)'position'과'left' 속성을 사용해야했습니다. –