We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background-position: center | top | bottom | left | right; //top|bottom是指定y方向位置的,left|right是指定x方向位置的,当只设定一个值时,另一个值自动为50%,同样background-position也可以接受两个值,第一个值指定x方向偏移的位置,第二个值指定y方向偏移的位置。 background-size: contain | cover //指定背景图片的大小,当至指定一个值的时候,其宽高比默认是不会被改变的(也就是说另一个值是auto)
The text was updated successfully, but these errors were encountered:
note: img 是没有基线的
Sorry, something went wrong.
当只指定一个值的时候,图像的宽高比是不会变化的,这个设定是很符合常理的。
No branches or pull requests
The text was updated successfully, but these errors were encountered: