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
一般设计给我们的图都特别的大,假如一个banner我们设置width为100%时,那么在低分辨率的电脑上显示就会变形, 可以通过background-size设置cover或者contain值来裁剪,这样就不会造成图片变形了,当然还有其他办法,比如响应式设置媒体查询,但这样无疑增加了工作量,还是比较麻烦
如果一个body的背景被它的子类的一个背景覆盖了,层级可能是背景在上面 。可以通过单独设置这两个背景为绝对定位,然后设置他们的z-index属性就能解决
The text was updated successfully, but these errors were encountered:
No branches or pull requests
解决图片变形的问题
一般设计给我们的图都特别的大,假如一个banner我们设置width为100%时,那么在低分辨率的电脑上显示就会变形,
可以通过background-size设置cover或者contain值来裁剪,这样就不会造成图片变形了,当然还有其他办法,比如响应式设置媒体查询,但这样无疑增加了工作量,还是比较麻烦
图片如何切图及布局
如果一个body的背景被它的子类的一个背景覆盖了,层级可能是背景在上面 。可以通过单独设置这两个背景为绝对定位,然后设置他们的z-index属性就能解决
The text was updated successfully, but these errors were encountered: