.effective,.discount{ float: right; margin-left: 20px; margin-top: 10px; p{ float: left; } div{ width: 15px; height: 20px; float: left; position: relative; .up{ cursor: pointer; position: absolute; top: 0; right: 0 } .up:hover{ color: #1890ff } .down{ cursor: pointer; position: absolute; bottom: 0; right: 0 } .down:hover{ color: #1890ff } } } .cardCode{ width: 1100px; .ant-card-body{ background: #69afeb; color: #fff; >p{ clear: both; text-align: center; font-size: 16px; padding-top: 20px; border-top: 1px solid #cccccc; } } .discountList{ display: flex; display: -webkit-flex; justify-content: space-between; margin-bottom: 5px; >p{ width: 124px; overflow: hidden; height: 68px; text-align: center; line-height: 75px; span{ font-size: 40px; } } } .intro { width: 180px; margin-top: 10px; p{ font-size: 16px; text-align: left; margin-bottom: 5px; overflow: hidden; white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; } } }