当我为我的网站编写媒体查询时,我想到了:浏览器的地址栏会影响 CSS 媒体查询吗?
当我编码时:
/* Portrait */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (orientation: portrait) {
}
我在考虑浏览器地址栏的高度吗?地址栏是否将像素减去屏幕视口?
我必须考虑这个媒体查询吗?
/* Portrait */
@media screen
and (device-width: 320px - <AddressBarHeight>)
and (device-height: 640px - <AddressBarHeight>)
and (orientation: portrait) {
}