Movatterモバイル変換


[0]ホーム

URL:


  1. 開発者向けのウェブ技術
  2. CSS
  3. リファレンス
  4. プロパティ
  5. border-bottom-right-radius

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。

View in EnglishAlways switch to English

border-bottom-right-radius

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

border-bottom-right-radiusCSS のプロパティで、角の曲率を定義する楕円の半径 (または半長軸と半短軸の半径) を指定することで、要素の右下の角を丸めます。

試してみましょう

border-bottom-right-radius: 80px 80px;
border-bottom-right-radius: 250px 100px;
border-bottom-right-radius: 50%;
border-bottom-right-radius: 50%;border: black 10px double;background-clip: content-box;
<section>  <div>    このボックスは右下が丸い角です。  </div></section>
#example-element {  width: 80%;  height: 80%;  display: flex;  justify-content: center;  flex-direction: column;  background-color: #5b6dcd;  color: white;  padding: 10px;}

構文

css
/* 角を円にする *//* border-bottom-right-radius: 半径 */border-bottom-right-radius: 3px;/* パーセント値 */border-bottom-right-radius: 20%; /* ボックスが正方形ならば円、長方形ならば楕円 */border-bottom-right-radius: 20% 20%; /* 上と同じ。水平方向 (width) および垂直方向 (height) の 20% */border-bottom-right-radius: 20% 10%; /* 水平方向 (width) の 20% および垂直方向 (height) の 10% *//* 角を楕円にする *//* border-bottom-right-radius: horizontal vertical */border-bottom-right-radius: 0.5em 1em;/* グローバル値 */border-bottom-right-radius: inherit;border-bottom-right-radius: initial;border-bottom-right-radius: revert;border-bottom-right-radius: revert-layer;border-bottom-right-radius: unset;

値 1 つで指定する場合:

  • 値は<length> または<percentage> であり、境界の角に使用する円の半径を示します。

値 2 つで指定する場合:

  • 最初の値は<length> または<percentage> であり、境界の角に使用する楕円の水平の軌道長半径を示します。
  • 最初の値は<length> または<percentage> であり、境界の角に使用する楕円の垂直の軌道長半径を示します。

<length-percentage>

円の半径または楕円の長半径および短半径を示します。絶対的な長さの場合は、 CSS の<length> データ型で表現することができます。水平軸のパーセント値はボックスの幅、垂直軸のパーセント軸はボックスの高さに対する値です。負の数は無効です。

解説

丸みは円または楕円にすることができ、値のうちの一つが0 であれば、丸めは行われずに角は四角くなります。

border-bottom-right-radius.png

背景は、画像または単色ですが、丸みがあっても境界で切り取られます。切り取られる正確な位置は、background-clip プロパティの値で定義されます。

メモ:このプロパティの値がborder-bottom-right-radius プロパティの後のborder-radius 一括指定プロパティで設定されなかった場合、このプロパティは一括指定プロパティによって初期値にリセットされます。

公式定義

初期値0
適用対象すべての要素。ただし、ユーザーエージェントはborder-collapsecollapse である場合にtable およびinline-table 要素に適用する必要はない。内部表要素での動作は、今のところ未定義。。::first-letter にも適用されます。
継承なし
パーセント値境界ボックスの対応する寸法に対する相対値
計算値2つの絶対的な<length> または<percentage>
アニメーションの種類length またはパーセント値, calc();

形式文法

border-bottom-right-radius =
<border-radius>

<border-radius> =
<slash-separated-border-radius-syntax>|
<legacy-border-radius-syntax>

<slash-separated-border-radius-syntax> =
<length-percentage [0,∞]>[ /<length-percentage [0,∞]>]?

<legacy-border-radius-syntax> =
<length-percentage [0,∞]>{1,2}

<length-percentage> =
<length>|
<percentage>

円弧

単一の<length> 値は円弧を生成します。

<div></div>
css
div {  border-bottom-right-radius: 40px;  background-color: lightgreen;  border: solid 1px black;  width: 100px;  height: 100px;}

楕円弧

2 つの異なる<length> の値は楕円弧を生成します。

<div></div>
css
div {  border-bottom-right-radius: 40px 20px;  background-color: lightgreen;  border: solid 1px black;  width: 100px;  height: 100px;}

正方形の要素にパーセント値の半径

正方形の要素に単一の<percentage> 値を指定すると、円弧を生成します。

<div></div>
css
div {  border-bottom-right-radius: 40%;  background-color: lightgreen;  border: solid 1px black;  width: 100px;  height: 100px;}

長方形の要素にパーセント値の半径

正方形ではない要素に単一の<percentage> 値を指定すると、楕円弧を生成します。

<div></div>
css
div {  border-bottom-right-radius: 40%;  background-color: lightgreen;  border: solid 1px black;  width: 200px;  height: 100px;}

仕様書

Specification
CSS Backgrounds and Borders Module Level 3
# border-radius

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp