星空网 > 软件开发 > 网页设计

关于HTML,css3自适应屏幕,自适应宽度

设置了在不同分辨率下,显示的css样式:

@media screen and (min-width:1080px){    .box{ width: 1080px;}.content{width: 1040px;}    .img{height:180px;}    .img{font-size: 48px;line-height: 180px;}    .title{font-size: 46px;line-height: 100px;}    .detail{font-size: 20px;}}@media screen and (min-width: 900px) and (max-width: 1079px) {    .box{ width: 900px; }.content{width: 860px;}    .img{height:160px;}    .img{font-size: 40px;line-height: 160px;}    .title{font-size: 38px;line-height: 80px;}    .detail{font-size: 17px;}}@media screen and (min-width: 768px) and (max-width: 899px) {    .box{ width: 768px; }.content{width: 728px;}    .img{height:140px;}    .img{font-size: 32px;line-height: 140px;}    .title{font-size: 30px;line-height: 60px;}    .detail{font-size: 14px;}}@media only screen and (min-width: 480px) and (max-width: 767px){    .box{ width: 480px; }.content{width: 440px; }    .img{height:98px;}    .img{font-size: 24px;line-height: 100px;}    .title{font-size: 22px;line-height: 40px;}    .detail{font-size: 11px;}}@media only screen and (max-width: 479px) {    .box{ width: 300px; }.content{width: 300px;}    .img{height:60px;}    .img{font-size: 16px;line-height: 60px;}    .title{font-size: 14px;line-height: 20px;}    .detail{font-size: 8px;}}

要是刚好在那个宽度上,如:屏幕宽度900,刚好




原标题:关于HTML,css3自适应屏幕,自适应宽度

关键词:HTML

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

服装品类7月选品推荐&月度主题活动:https://www.kjdsnews.com/a/1551737.html
竞争对手那么多,客户凭什么把订单给你?:https://www.kjdsnews.com/a/1551738.html
亚马逊listing埋词攻略---附一键检测工具:https://www.kjdsnews.com/a/1551739.html
A+物流新增5个路向国,Wish和你一起持续提升物流体验!:https://www.kjdsnews.com/a/1551740.html
2023上半年美妆赛道统计分析:https://www.kjdsnews.com/a/1551741.html
抖音货架电商解读:https://www.kjdsnews.com/a/1551742.html
美国版权小知识-哪些作品能够登记美国版权?:https://www.kjdsnews.com/a/1836627.html
俄罗斯汽车企业进口东风汽车零部件组装雪铁龙汽车:https://www.kjdsnews.com/a/1836628.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流