fix: 修改登录右侧的图片样式。
This commit is contained in:
@@ -171,10 +171,13 @@ getCookie()
|
|||||||
.leftPick {
|
.leftPick {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: hidden; // 防止图片溢出
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
|
object-fit: cover; // 保持图片比例,裁剪填充
|
||||||
|
object-position: center; // 图片居中显示
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user