簡単なテストhtmlをFirefoxで開こうとすると、すべてうまくいくが、Chromeやモバイルデバイスで開くと、列間。 なぜ誰が理解していますか?カラムギャップスペースを避ける方法 - マージンとパディングを0に設定しても動作しない
これを解決する方法があれば、本当に感謝しています。問題は、Firefoxとはうまく動作しますが、Chromeとモバイルデバイスはこれをオブジェクトとして認識しません。
<div class="container">
<div class="col-md-4 col-xs-4" style=" padding:0 !important;
margin:0 !important;
border:1px solid;
">
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="11" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-10 col-xs-10" style=" padding:0 !important;
margin:0 !important;
">
<button id="12" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="13" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="14" class="button" type="button" style=" background-color:green;
height:160px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-10 col-xs-10" style=" padding:0 !important;
margin:0 !important;
">
<button id="15" class="button" type="button" style=" background-color:greeen;
height:160px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="16" class="button" type="button" style=" background-color:green;
height:160px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="17" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-10 col-xs-10" style=" padding:0 !important;
margin:0 !important;
">
<button id="18" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
<div class="col-md-1 col-xs-1" style=" padding:0 !important;
margin:0 !important;
">
<button id="19" class="button" type="button" style=" background-color:green;
height:40px;
width:100%;
border:none;
display:flexbox;
padding:0 !important;
margin:0 !important;
"></button>
</div>
</div>
</div>
フレキシボックスは、2011年の表示に使用される非公式構文た:フレックスは – Chase
おかげ@Chase今使われているものです。その2011年の構文を知らなかった。 – haltersweb
である必要はありません。私は簡単な言及としてこのガイドでそれを見つけました。 https://css-tricks.com/snippets/css/a-guide-to-flexbox/ – Chase