在CSS中为按钮的上半部分创建圆角 [英] Creating rounded corners for top half of the buttons in CSS
本文介绍了在CSS中为按钮的上半部分创建圆角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何使用来制作圆角, border-radius
和 -webkit-border-radius
。
我需要一些关于如何在CSS中执行此操作的指导。解决方案
您可以使用以下样式规则:
border-top-left-radius
border-top-right-radius
注意: border-radius
规则在没有 -webkit -
位的情况下工作。
I would like to make rounded corners only for the top half of buttons.
I know how to make rounded corners for all sides using border-radius
and -webkit-border-radius
.
But only like to have corners for the top half.
I need some guidance on how to do this in CSS.
解决方案
You can use the following styling rules:
border-top-left-radius
border-top-right-radius
Note: The border-radius
rule works without the -webkit-
bit.
这篇关于在CSS中为按钮的上半部分创建圆角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文