0

ルート ディレクトリに PIE.HTC があり、Internet Explorer で角を丸くしようとしています。

これは私のCSSです

#credits-earned
{
    border-style:solid;
    border-width:2px;
    border-color:#EDEDED;
    width:170px;
    height:60px;
    margin-bottom:10px;
    font-weight: bold;
    border-radius:8px;
    behavior: url (PIE.htc);
}

これが有効にしようとしている HTML は次のとおりです。

<div id="credits-earned">
                        You need to earn X<br> more credits today to avoid losing credits
                    </div>

ただし、丸みを帯びた角は IE では機能しません。

どんな助けでも大歓迎です。

4

2 に答える 2

0

pie.htc が機能するための適切なパスとは別に、次のように指定します。

 #credits-earned
 { position: relative;
 }
于 2013-11-19T12:14:31.680 に答える