.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; } .discountList{ p{ font-size: 16px; } >p{ border-bottom: 1px solid #cccc; text-align: center; span{ font-size: 60px; margin: 0 10px; display: inline-block; } padding-bottom: 10px; } .discountListTxt { p{ margin-top: 10px; } } } .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; } } }