@import '~antd/lib/style/themes/default.less'; .card-onmouse{ // margin:auto; .ant-image{ position: absolute; left: 0px; z-index: 1, } .text-css{ width:100%; text-align: center; font-size: 20px; position: absolute; z-index: 99; color: white; top: 50%; transform: translateY(-50%); } } .card-onmouse:hover{ box-shadow: 8px 8px 5px #9e9e9e;/*设置阴影,可以自定义参数*/ } .header { display: flex; height: 56px; color: white; font-weight: 600; font-size: 16px; line-height: 56px; background-color: #b30000; .headerAlign { align-self: center; margin-left: 20px; } .proName { font-weight: 300; font-size: 30px; } .closeButton { position: absolute; right: 20px; } } .anchor-father { position: fixed; .ant-anchor { padding: 0px; overflow: hidden; } .ant-anchor-ink { position: fixed; margin: 0px; } .ant-anchor-wrapper { margin-left: 0px; padding: 0px; // border-radius: 8px; } .ant-anchor-ink-ball.visible { display: none; } .ant-anchor-ink::before { display: none; } .ant-anchor-link-active { background-color: rgb(179, 0, 0); } .ant-anchor-link-title-active { color: rgb(255, 255, 255); } .ant-affix { top: 134px !important; } } .backtop { width: 40px; height: 40px; color: #fff; line-height: 40px; text-align: center; background-color: rgb(179, 0, 0); border-radius: 4px; font-size: 14px; }