Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
css 最小50%,最大100%
{
min-width:50%;
width: calc((25em - 100%) * 1000); // 当font-size:16px 25*16=400, 100% 大于 400时,min-width起作用,当100%小于400, max-width
max-width: 100%;
}
@Yang03

This comment has been minimized.

Copy link
Owner Author

Yang03 commented Jun 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.