gpt4 book ai didi

css - 相当于本地样式表中的媒体 ="all and min-with:900px"

转载 作者:行者123 更新时间:2023-11-28 10:43:36 25 4
gpt4 key购买 nike

我正在处理的元素有 3 个 css 页面——可能不是最好的,但这是语法:

<link href="/cg/ui/css/desktop.css"" rel="stylesheet" type="text/css" media="only screen and (min-width:800px)" />
<!-- Tablets -->
<link href="/cg/ui/css/tablet.css" rel="stylesheet" type="text/css" media="all and (min-width: 600px) and (max-width: 799px)" />
<!-- phones -->
<link href="/cg/ui/css/mobile.css" rel="stylesheet" type="text/css" media="all and (min-width: 300px) and (max-width: 599px)" />

我的问题是,有什么方法可以使用这些参数在本地样式表上做同样的事情吗?这不起作用:

<style>
@media "all and (min-width: 600px) and (max-width: 799px)"{
/*this was my first guess, if possible but no works*/
}
</style>

谢谢,如果可能的话,它会使测试更容易!

最佳答案

@media all and (min-width: 600px) and (max-width: 799px)

关于css - 相当于本地样式表中的媒体 ="all and min-with:900px",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23066701/

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