@media all and (orientation : landscape) { h2{color:red;}/*横屏时字体红色*/ } @media all and (orientation : portrait){ h2{color:green;}/*竖屏时字体绿色*/ }
原文地址:https://www.cnblogs.com/1032473245jing/p/8945096.html
时间: 2024-07-31 16:35:14
@media all and (orientation : landscape) { h2{color:red;}/*横屏时字体红色*/ } @media all and (orientation : portrait){ h2{color:green;}/*竖屏时字体绿色*/ }
原文地址:https://www.cnblogs.com/1032473245jing/p/8945096.html