gpt4 book ai didi

html - 媒体查询不适用于 415px

转载 作者:行者123 更新时间:2023-11-28 17:26:55 24 4
gpt4 key购买 nike

html

<h1 class="map__item">Find us</h1>

css(1400 像素屏幕)

.mail__item {
position: absolute;
top: 340px;
right: 71px;
text-decoration: none;
text-transform: uppercase;
}

css(415 像素屏幕)

@media only screen and (max-width: 415px) {
.map__item {
top: 33px;
font-size: 4em;
}
}

浏览器忽略 415 代码

最佳答案

更新 Css

 @media screen and (max-width: 415px) {

.map__item {
top: 33px;
font-size: 4em;
}
}

现场演示 Here

Notes: Change height and width in fiddle then result are display

关于html - 媒体查询不适用于 415px,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39329358/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com