如何设置按钮大小?
导读: 按钮大小 我们可以使用 font-size 属性来设置按钮大小: 实例 .button1 {font-size: 10px;} .button2 {font-size: 12px;} ....
按钮大小
我们可以使用 font-size 属性来设置按钮大小:
实例
.button1 {
font-size: 10px;
}
.button2 {
font-size: 12px;
}
.button3 {
font-size: 16px;
}
.button4 {
font-size: 20px;
}
.button5 {
font-size: 24px;
}
圆角按钮
我们可以使用 border-radius 属性来设置圆角按钮:
实例
.button1 {
border-radius: 2px;
}
.button2 {
border-radius: 4px;
}
.button3 {
border-radius: 8px;
}
.button4 {
border-radius: 12px;
}
.button5 {
border-radius: 50%;
}
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: 如何设置按钮大小?
本文地址: https://pptw.com/jishu/667420.html