简体   繁体   中英

How can i resize the buttons with CSS using input type=“number”

Here is my CSS for the element shown in the attached image.

.ClsInpBestAnz {
    border-radius: 0px;
    margin: 5px 5px 0px 10px;
    width: 45px;
    color: #822;
    text-align: right;
    display: block;
    font-size: 1.8em;
}

How can i resize the buttons?

在此处输入图片说明

Thank you for your help..

You can find the updated css here

.ClsInpBestAnz {
        border-radius: 0px;
        margin: 5px 15px 0px 10px;
        width: 50px;
        color: #822;
        text-align: left;
        display: block;
        font-size: 1.8em;
    }

https://jsfiddle.net/ajrek251/

Alternatively, you can take a look at the Jquery UI spinner plugin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM