css要实现从上到下颜色渐变的遮罩,从深色逐渐变为浅色。
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0) 100%);
...
yekong
2年前 (2022-10-08) 1185℃
0喜欢
css 最后一个元素样式控制 last-child
.commentsItem:last-child {
border-bottom: 0;
}
...
yekong
2年前 (2022-06-11) 980℃
0喜欢
-webkit-user-select: none;
...
yekong
2年前 (2022-06-09) 743℃
0喜欢
css 实现禁止图片拖动
img {
-webkit-user-drag: none;
}
...
yekong
2年前 (2022-06-09) 966℃
0喜欢
html
<div class="zhezhaox">
<div class="zhezhaox2"></div>
</div>
css
.zhezhaox {...
yekong
2年前 (2022-05-14) 856℃
0喜欢
//横向horizontal
.horizontalScroll::-webkit-scrollbar {
width: 100%;
height: 10px;
}
/*滚动条滑块*/
.horizontalScroll::-webkit-scrollbar-thu...
yekong
2年前 (2022-04-23) 1119℃
1喜欢
主要使用到transition
-webkit-transition: .2s;
transition: .2s;
.homeListItem {
width: 282px;
height: 281px;
background: #FFFFFF;
box...
yekong
2年前 (2022-03-20) 1122℃
0喜欢
鼠标不可点击时的显示状态
cursor: not-allowed
禁止触发点击事件
pointer-events:none
...
yekong
2年前 (2022-03-02) 1039℃
0喜欢
text-decoration:line-through
...
yekong
2年前 (2022-01-26) 1124℃
0喜欢
.expand {
transform: rotate(90deg);
-ms-transform: rotate(90deg);
/* Internet Explorer 9*/
-moz-transform: rotate(90deg);
/* Firef...
yekong
2年前 (2022-01-16) 1357℃
0喜欢