Tôi có đoạn code sau CSS:quy tắc CSS cho trình duyệt webkit dựa
#mgheader .letters {
display: inline-block;
margin-left: 55px;
margin-top: -45px;
position: absolute;
}
#mgheader .letters {
display: inline-block;
margin-left: 10px;
position: absolute;
}
Bây giờ tôi muốn thực hiện đầu tiên chỉ trong Google Chrome và Safari, và lần thứ hai trong các trình duyệt khác.
tôi đã cố gắng này, nhưng mã thứ hai dường như được thực hiện luôn:
@media screen and (-webkit-min-device-pixel-ratio:0) {
#mgheader .letters {
display: inline-block;
margin-left: 55px;
margin-top: -45px;
position: absolute;
}
}
#mgheader .letters {
display: inline-block;
margin-left: 10px;
position: absolute;
}
Làm thế nào tôi có thể khắc phục điều đó?
Cảm ơn bạn! Rất hữu ích :) – Draco