css: 全屏显示样式图片滚动

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
}
.screen-content {
    width: 95%;
    height: 100%;
    margin: 20px auto;
    overflow-y: auto;
}

.screen-content .screen-picture {
    position: relative;
    text-align: center;
}

设置height:100%,overflow: auto.

隐藏默认滚动条:

.screen-content::-webkit-scrollbar {
    display: none;
}

 

css: 全屏显示样式图片滚动

上一篇:11 . KubernetesRBAC认证及ServiceAccount、Dashboard


下一篇:BackBone--Lenet