More Related Content
Similar to 最近知ったBootstrapの注意点
Similar to 最近知ったBootstrapの注意点 (20)
最近知ったBootstrapの注意点
- 10. bootstrap-ie7.cssとboxsizing.htc
Bootstrap 3 for IE7
https://github.com/coliff/bootstrap-ie7
上段は、bootstrap 3をIE7対応させるCSS、見つけました。
下段は、IE7で boxsizingを有効化します。
A CSS box-sizing: border-box polyfill for IE 6/7
https://github.com/Schepp/box-sizing-polyfill
- 11. IE7は非レスポンシブ
<!--[if lt IE 8]>
<link href=“/css/ie7.css" rel="stylesheet">
<![endif]-->
IE7専用CSSを用意して、bootstrapのcssを上書きします。
PCブラウザなので、レスポンシブ表示である必要ありません、よね。
.container {
width : 980px !important;
}
.container に数値指定すれば、固定レイアウトに。
【参照】http://getbootstrap.com/getting-started/#disable-responsive
- 12. Glyphiconsはjqueryで書き換え
<span class="glyphicon glyphicon-triangle-right" aria-hidden="true"></span>
IE7ではアイコンフォントがうまく表示されません。
そこで Jqueryを用いて、該当するアイコンの文字コード(unicode)を
<span>の中に生成します。
$('span.glyphicon-triangle-right').removeClass(‘glyphicon-triangle-right‘).html('' );
<span class="glyphicon" aria-hidden="true"> </span>
<before>
<after>
使用してる分、用意してください。