简体   繁体   中英

How to create a tiny button?

I have a need to create a tiny button but I cannot do that with its width. It seems that button's width has a minimum value. When I set its height is 5px and width is 5px, it's OK in Visual Studio but when it's rendered in Web browsers, only its height is right.

Do you know how to set button's width to a small very?

Try setting the padding to 0.

padding: 0px; 

Browsers by default add padding. It also varies from browser to browser.

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