.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{ text-align: center; p{ line-height: 30px; } }