マークアップの順序を変更する以外のフレックスラップの最初の項目を除外する方法はありますか?フレックスボックスラップの最初のアイテムを除外する方法は?
<div class="container">
<div id="tobeexcluded">abc</div>
<div class="flexitem">content</div>
<div class="flexitem">content</div>
<div class="flexitem">content</div>
</div>
EDIT: 私は今
:not(:first-child)
とも
:not(#tobeexcluded)
を試みたが、それは働いていません。これは、実際のクラスの建設で、それはDrupalのビューです:
.view-id-reference_list .view-content:not(:first-child) {
display: flex
flex-flow: wrap
}
フィドル:https://jsfiddle.net/m62090za/4/
は、ここで私が何をしたいのです:https://jsfiddle.net/Lxhpwqzn/1/が、マークアップを変更せずに。
の可能性のある重複[CSSない:第一子セレクタ](http://stackoverflow.com/questions/12289853/css-notfirst-child-selector) –
であるあなたの深刻か眠いです? –
あなたはcss '#tobeexcluded {display:none}'を使って除外することができます。 – Robert