ne-height: 28px; background: none; } .chanpin-details-cont-main table.price tr td{ background: none; font-size: 12px; } .chanpin-details-cont-main table.price tr:nth-child(1){ width: 150px; display: block; } .chanpin-details-cont-main table.price tr:nth-child(2) td{ width: 150px; display: block; letter-spacing: 1px; text-align: right; } .chanpin-details-cont-main table.price tr:nth-child(3) td{ width: 200px; display: block; letter-spacing: 1px; } .ccheng{ color: #ff8206; background: #e6e6e6; } .chong { color: #d32f24; } .container { margin: 50px auto; width: 300px; background-color: #fff; border-radius: 5px; padding: 20px; box-shadow: 0px 2px 10px rgba(0,0,0,0.3); } h1 { text-align: center; margin-top: 0; font-size: 24px; } .quantity { display: inline-flex; align-items: center; /*margin-bottom: 20px;*/ border: 1px solid #ccc; border-radius: 5px; overflow: hidden; background-color: #f2f2f2; width: 150px; height: 32px; } .quantity button { background-color: #ddd; color: #333; border: none; border-radius: 0; height: 100%; width: 50px; font-size: 24px; cursor: pointer; outline: none; } .quantity button:hover { background-color: #bbb; } .quantity button:active { background-color: #999; } .quantity input[type="number"] { width: 100%; height: 100%; border: none; font-size: 24px; text-align: center; background-color: #f2f2f2; outline: none; } .quantity input[type="number"]::-webkit-inner-spin-button, .quantity input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .total { text-align: center; font-size: 24px; font-weight: bold; margin-top: 20px; }
数量 :
合计 : ¥0