IE バージョン < 10 ではプロパティをdisplay
使用できないという2 つのルールがあります。次のコードを使用しています。display
Comments(<fb:comments-count href="http://mypage"/></fb:comments-count>)
その結果、次のようになります。
Comments(<fb:comments-count href="http://mypage" fb-xfbml-state="rendered" class=" fb_comments_count_zero">
<span class="fb_comments_count">
10
</span>
</fb:comments-count>)
このCSSで:
.fb_comments_count {
display: inline;
}
.fb_comments_count_zero {
display: inline;
}
以下が表示されます。
Comments(
10
)
それ以外の
Comments(10)
私も変えてみました
display:inline
に
display:inline-block
しかし、それは機能していません。
私が抱えている他の問題は、私が使用するときですdisplay:none
。実際、IE<10 ではスタイリングした内容が隠されませんが、IE10、chrome、opera、firefox ではその問題はありません。
どうすればこれを修正できますか?
PS 私は JavaScript を使用しないことを好みます。なぜなら、JavaScript が無効になっていても自分のサイトの見栄えを良くしたいからです。