Home>Article>Web Front-end> css button size settings
How to set the size of css button: first create an HTML sample file; then create a button through the button tag in the body; finally use the "font-size" attribute to set the button size.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
You can use the font-size attribute to set the button size:
The code is as follows:
按钮大小
我们可以使用 font-size 属性来设置按钮大小:
The effect is as follows:
【Recommended learning:css video tutorial】
The above is the detailed content of css button size settings. For more information, please follow other related articles on the PHP Chinese website!