以下のようなhtmlがあります
<div class="wrapper">
<div class="LItms">
<div class="clr">
</div>
<span>text con</span>
<ul>
<li>first</li>
<li>second</li>
</ul>
</div>
</div>
私は彼らのためにいくつかのCSSを持っています
相対位置なし
.clr {
color: red;
display: list-item;
list-style-type: square;
font-size: 40px;
height: 16px;
width:16px;
margin-bottom: 17px;
margin-left: 23px;
}
相対位置で
.clr {
color: red;
display: list-item;
list-style-type: square;
font-size: 40px;
height: 16px;
width:16px;
margin-bottom: 17px;
margin-left: 23px;
}
両方のcssを試しましたが、問題はfire foxでは問題なく動作することですが、chromeでは、つまり、divの弾丸のサイズはfirefoxに比べて小さく、クラス.clrのdivの隣にある弾丸とスパンの間のスペースさえありますFirefox と比較すると、ブラウザ間で同じように配置する必要があります。