背景色
Prince はborder-colorを認識しているようですが、 color (テキストの色) やbackground-colorやbackground-imageは認識していません。
After疑似要素と太い境界線を使用して、背景色をシミュレートできます。プリンスはこれを正しくレンダリングします。
CSS
.bgRED:after {
content: "";
display:block;
border-top: 25px solid red;
margin-top: -25px;
}
.bgRED-ib {display: inline-block;}
HTML
<p class='bgRED'>This is a p with a red background</p>
<span class='bgRED bgRED-ib span6'>This is a span with a red background</span>
これを機能させるには、要素の高さをピクセル単位で知る必要があります。
背景画像
ページ全体に背景画像の「ウォーターマーク」を作成して、同様のことを試みています
Prince は次のように CSS を無視しました: background-image: url(HUGE_sunset.jpg)
ただし、次のようなものを使用して動作させることができました。
HTML
<img class="behind" src='HUGE_sunset.jpg'>
<div class="infront">
<p>with the lights out, it's less dangerous, here we are now entertain us </p>
</div>
CSS
.behind {position: absolute; width:100%; height:100%; z-index:1;}
.infront {position: absolute; z-index:500;}