created
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
.parent-container {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
flex-shrink: 0; /* 禁止宽度压缩 */
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
border: 1rpx solid #ccc;
|
||||
}
|
||||
.cross-line {
|
||||
position: absolute;
|
||||
background-color: #ccc;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
}
|
||||
.horizontal {
|
||||
width: 30rpx;
|
||||
height: 5rpx;
|
||||
border-radius: 2rpx;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.vertical {
|
||||
height: 30rpx;
|
||||
width: 5rpx;
|
||||
border-radius: 2rpx;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user