1
私はIEとEdgeのcheckbox
の問題、つまり「コンテンツ」の問題に直面しています。私は、次のコードを持っている:フィールドはクロームcontent: url(../img/mark-white.png);
でチェックボックスの内容IE 11/Edge
.checkbox-edit-article:checked + .checkbox-edit-article-label:before {
content: url(../img/mark-white.png);
background: rgb(49,119,61);
color: #fff;
height: 44px;
line-height: 2.4;
transition: all .2s;
}
と静的
.checkbox-edit-article + .checkbox-edit-article-label:before {
content: '';
background: #fff;
border: 1px solid #BFBFBF;
display: inline-block;
vertical-align: middle;
width: 43px;
height: 44px;
margin-right: 10px;
margin-top: 1px;
text-align: center;
box-shadow: inset 0px 0px 0px 1px white;
}
をチェックされている場合
<input id="checkbox" type="checkbox" class="checkbox-edit-article" name="breakingNews" ng-model="showPublished" ng-change="updateCategory(selectedCategory, pageID)">
<label for="checkbox" class="checkbox-edit-article-label">
Show only published articles
</label>
</input>
を完全に表示されますが、IEには、このチェック画像は理由が高すぎますline-height
ですが、どのようにチェックボックスに画像を配置するのか分かりません。
私はあなたの助けを頼みます、どのようにイメージを整列できますか?
ありがとうございます!
あなたが問題を再現するのに十分な私たちを与えることはできますか?おそらく働くフィドル、これらの画像はどのように見えますか? –