Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何仅在元素顶部获得CSS3边界半径?_Css - Fatal编程技术网

如何仅在元素顶部获得CSS3边界半径?

如何仅在元素顶部获得CSS3边界半径?,css,Css,嗨, 我将此代码用于CSS3边界半径,如何调整它,以便只在顶部获得边界半径 border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; 谢谢。使用特定于侧面的边界半径规则 例: 请注意,Chrome和Firefox的最新版本都支持不带前缀whis的边界半径规则,仅在较旧版本中需要该规则。使用: border-radius:15px 15px 0 0; -moz-border-radius:15px 15

嗨, 我将此代码用于CSS3边界半径,如何调整它,以便只在顶部获得边界半径

border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;

谢谢。

使用特定于侧面的边界半径规则

例:

请注意,Chrome和Firefox的最新版本都支持不带前缀whis的边界半径规则,仅在较旧版本中需要该规则。

使用:

border-radius:15px 15px 0 0;
-moz-border-radius:15px 15px 0 0;
-webkit-border-radius:15px 15px 0 0;

顺序是:左上角、右上角、右下角和左下角。

使用
边框半径
速记属性:

border-radius:15px 15px 0 0; /* top-left, top-right, bottom-right, bottom-left */

总是把固定版本放在最后;
border-radius:15px 15px 0 0; /* top-left, top-right, bottom-right, bottom-left */