(创建页面,内容为“.cs{ border: 1px solid black; }”) |
(新页面) |
||
第1行: | 第1行: | ||
.latest-item { |
|||
.cs{ |
|||
flex-wrap: wrap; |
|||
border: 1px solid black; |
|||
display: flex; |
|||
position: relative; |
|||
justify-content: left; |
|||
margin: 0 175px; |
|||
width: 10rem; |
|||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575); |
|||
border: 1px solid rgba(0,0,0,.12); |
|||
border-radius: 4px; |
|||
transition: border-color .2s; |
|||
} |
|||
#one{ |
|||
margin-left: 170px; |
|||
} |
|||
.latest-item:nth-child(1) { |
|||
margin-left: 5%; |
|||
} |
|||
.latest-item:hover{ |
|||
border-color: #4096ff; |
|||
transition: border-color .2s; |
|||
} |
|||
.latest-item-now { |
|||
border-color: #58a3ff; |
|||
transition: all .2s; |
|||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975); |
|||
} |
|||
.latest-item-info { |
|||
padding-left: .6em; |
|||
padding-right: .6em; |
|||
white-space: nowrap; |
|||
width: 8em; |
|||
} |
|||
.latest-item-info p { |
|||
overflow: hidden; |
|||
text-overflow: ellipsis; |
|||
} |
|||
.latest-item-more { |
|||
width: 4em; |
|||
height: 4em; |
|||
border-radius: 999px; |
|||
text-align: center; |
|||
} |
|||
.latest-item-more-text { |
|||
width: 4em; |
|||
height: 4em; |
|||
line-height: 4em; |
|||
} |
|||
.latest-item-more:hover a { |
|||
text-decoration: none; |
|||
} |
|||
.latest-item-click { |
|||
position: absolute; |
|||
user-select: none; |
|||
} |
|||
.latest-item-click a img { |
|||
width: 10em; |
|||
height: 13em; |
|||
opacity: 0; |
|||
user-select: none; |
|||
} |
|||
img{ |
|||
width: 100%; |
|||
} |
|||
*{ |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
.container{ |
|||
width: 500px; |
|||
height: 300px; |
|||
margin: 10px auto; |
|||
border: 2px outset rgb(197, 24, 24); |
|||
position: relative; |
|||
overflow: hidden; |
|||
} |
|||
.carousel{ |
|||
width: 500px; |
|||
height: 300px; |
|||
float: left; |
|||
display: flex; |
|||
flex-wrap: nowrap; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
/* transition: 0.5s; */ |
|||
} |
|||
.carousel-one{ |
|||
display: flex; |
|||
border: 2px outset rgb(197, 24, 24); |
|||
} |
|||
.indicator{ |
|||
position: absolute; |
|||
bottom: 10px; |
|||
display: flex; |
|||
left: 50%; |
|||
/* border: 1px outset #ccc; */ |
|||
transform: translateX(-50%); |
|||
} |
|||
.indicator span{ |
|||
width: 10px; |
|||
height: 10px; |
|||
border: 1px outset #ccc; |
|||
border-radius: 50%; |
|||
margin: 0 3px; |
|||
} |
|||
.indicator span.active{ |
|||
background-color: #000; |
|||
border-color: #000; |
|||
} |
} |
2023年10月2日 (一) 14:47的版本
.latest-item {
flex-wrap: wrap;
display: flex;
position: relative;
justify-content: left;
margin: 0 175px;
width: 10rem;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
border: 1px solid rgba(0,0,0,.12);
border-radius: 4px;
transition: border-color .2s;
}
#one{
margin-left: 170px;
}
.latest-item:nth-child(1) {
margin-left: 5%;
}
.latest-item:hover{
border-color: #4096ff;
transition: border-color .2s;
}
.latest-item-now {
border-color: #58a3ff;
transition: all .2s;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
}
.latest-item-info {
padding-left: .6em;
padding-right: .6em;
white-space: nowrap;
width: 8em;
}
.latest-item-info p {
overflow: hidden;
text-overflow: ellipsis;
}
.latest-item-more {
width: 4em;
height: 4em;
border-radius: 999px;
text-align: center;
}
.latest-item-more-text {
width: 4em;
height: 4em;
line-height: 4em;
}
.latest-item-more:hover a {
text-decoration: none;
}
.latest-item-click {
position: absolute;
user-select: none;
}
.latest-item-click a img {
width: 10em;
height: 13em;
opacity: 0;
user-select: none;
}
img{
width: 100%;
}
*{
margin: 0;
padding: 0;
}
.container{
width: 500px;
height: 300px;
margin: 10px auto;
border: 2px outset rgb(197, 24, 24);
position: relative;
overflow: hidden;
}
.carousel{
width: 500px;
height: 300px;
float: left;
display: flex;
flex-wrap: nowrap;
flex-direction: row;
align-items: center;
/* transition: 0.5s; */
}
.carousel-one{
display: flex;
border: 2px outset rgb(197, 24, 24);
}
.indicator{
position: absolute;
bottom: 10px;
display: flex;
left: 50%;
/* border: 1px outset #ccc; */
transform: translateX(-50%);
}
.indicator span{
width: 10px;
height: 10px;
border: 1px outset #ccc;
border-radius: 50%;
margin: 0 3px;
}
.indicator span.active{
background-color: #000;
border-color: #000;
}