¶直線グラデーション。
<DIV style="width:100px; height:100px; background-image:linear-gradient(0deg, red, yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(20deg, red, yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(90deg, red, yellow); ">あ</DIV>
to
<side-or-corner>
<DIV style="width:100px; height:100px; background-image:linear-gradient(to top, red,yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(to top left, red,yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red, yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red 20px, yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red, yellow 20px); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red 20px, yellow 20px); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red 20px, yellow 40px); ">あ</DIV>最初の<length-percentage>まで赤、
<DIV style="width:100px; height:100px; background-image:linear-gradient(red, 20px, yellow); ">あ</DIV>
<DIV style="width:100px; height:100px; background-image:linear-gradient(red, 80px, yellow); ">あ</DIV>
linear-gradient()、conic-gradient()、radial-gradient()。
repeating-linear-gradient()、repeating-conic-gradient()、repeating-radial-gradient()。
表示内容: |
表示内容: |