Created
September 27, 2018 13:54
-
-
Save Aliciabcd/af2378a27fc7921beee4327746df1636 to your computer and use it in GitHub Desktop.
{不歸路筆記} aspect-ratio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 瀏覽器可視範圍 寬除高 超過比例1.77時 | |
@media screen and (min-aspect-ratio:1800 / 1013){ | |
.Bg-Content-img{ | |
width: 100%; | |
height: auto; | |
min-height: 100%; | |
} | |
} | |
// 瀏覽器可視範圍 寬除高 不超過比例1.77時 | |
@media screen and (max-aspect-ratio:1800 / 1013){ | |
.Bg-Content-img{ | |
height: 100%; | |
width: auto; | |
min-width: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment