私は以下のコードを使用して、小さな画面スタイルをレンダリングし、サポートしているすべてのサポートされているブラウザ(IE 11、Chrome、Firefox、Edge)でテストしました。私が抱えている問題は、.smallFixFooterのmargin-bottomがdivのスタック間にスペースを作成するために適用されていないことです。メディアクエリからCSSを受け取る問題xs chromeとfirefox
CSS:
@@media screen and (max-width:767){
.smallDevices {
padding-bottom: 30px;
margin-bottom: 30px;
}
.ScreenStyle {
height: 914px;
margin-bottom: 10px;
}
.smallFixFooter {
margin-bottom: 10px;
}
}
HTML:
<div class="col-xs-12 text-center smallDevices smallFixFooter largeDevices">
<div class="col-md-4 col-xs-12 centerDiv footBorder smallFixFooter explorerStyleFoot" style="background-color:whitesmoke;">
<div style="display:inline-block;width:70%" class="smallFixFooter bottomBoxFix">
<h3><strong class="footerBoxHeader"></strong></h3>
<p>
<span class="explorerStyleSpan"></span>
<audio controls id="explorerStyle" class="audioFix">
<source src="" type="audio/mp3" />
</audio>
</p>
</div>
</div>
<div class="col-md-4 col-xs-12 centerDiv footBorder smallFixFooter explorerStyleFoot" style="background-color:whitesmoke;">
<div style="display:inline-block;width:70%" class="smallFixFooter">
<h3><strong class="footerBoxHeader"></strong></h3>
<p>
<span></span><br />
<button class="ComplianceImages" data-toggle="modal" data-target="#modalCarousel"><img src="" /></button>
</p>
</div>
</div>
<div class="col-md-4 col-xs-12 centerDiv smallFixFooter " style="background-color:whitesmoke;">
<div style="display:inline-block;" class="bottomBoxFix">
<h3><strong class="footerBoxHeader">foo</strong></h3>
<p>
<span></span>
<button class="" data-toggle="modal" data-target="#modalCertificate"><img src="" /></button>
</p>
</div>
</div>
</div>
編集アップデート:私はそれが私に言っているjqueryの
var w = window.innerWidth;
var h = window.innerHeight;
console.log(w,h)
のこの作品から、私のサイズを取得していますその問題は私が幅618で壊れていることです、そして、それは標準のブートストラップブレークポイントではありません。
あなたのメディアクエリーが無効である -
そして@Adrianopolisはコメントで述べたように、@@media
も間違っているが、それだけで、単一の@にする必要があります。 767_what_ ...? – CBroe@CBroeが問題ですが、ピクセルの定義に失敗しました。どうもありがとうございました。 – Joshua
@CBroeこれを回答の形で入力したい場合は、私はupvoteします。 – Joshua