亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

CSS3 ??? ?????() ??? ?????

??? ?????: ???? ????? ????? ?? ???? ?? ?????? ????. (????? ????? ??????.)

css3? ???-?????() ??? ?????? ?? ??? ??:
??????? ??? ?????? ?? ?????? ?????. ?? ?????? ???? "css3? ??-????? ?? ?????? ?? ??? ??" ?? ?????. .
????? ?? ?????? ?? ??? ??????? ???? ???? ?????. ??? ?????? ?? ?? ?????.
? ?????? ?? ??? ??? ?? ?? ???? ???? ????? ??? ?????? ???? ?? ? ????.
?? ??:

radial-gradient(   [ circle || <length> ] [ at <position> ]? ,
                 | [ ellipse || [<length> | <percentage> ]{2}] [ at <position> ]? ,
                 | [ [ circle | ellipse ] || <extent-keyword> ] [ at <position> ]? ,
                 | at <position> ,
                 <color-stop> [ , <color-stop> ]+ )

???? ??:
(1).circle: ??? ?????? ?? ??? ?????.
(2).ellipse: ??? ?????? ??? ??? ?????.
(3).at <position>: ? ??? ?? ??? ?????.
(4).<extent-keyword>: ?? ????? ?? ??? ???? ???(?? ???? ???? ??? ?? ??? ?? ??? ?????? ???? ??? ? ??): Nearest-side, Nearest-Corner , ?? ? ?, ?? ? ?, ????? ??? ??? ???? ?? ??? ??? ???????.
(5).<color-stop>: ?? ??? ? ??? ?????.
?? ?:

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:150px;
  height:80px;
  margin:20px;
}
.antzone{
  background:radial-gradient(#ace, #f96, #1E90FF);
}
</style>
</head>
<body>
<div class="antzone"></div>
</body>
</html>

QQ截圖20161014160337.png

?? ?? ??? ???? ?? ?? ?? center???.
???? ??? ???? ? ??? ?? ?? ??, ? ??, ??, ???, ???? ?? ?? ?? ???? ????.
?? ??? ??? ????.

<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:150px;
  height:80px;
  margin:20px;
}
.antzone{
  background:radial-gradient(at left bottom,#ace, #f96, #1E90FF);
}
</style>
</head>
<body>
<div class="antzone"></div>
</body>
</html>

QQ截圖20161014160344.png

? ??? ??? ?????? ??, ? ???? ?? ?? ??? ?????. ?? ??? ????? ?? ?? ???? ????.
??? ?????? ??? ????? ??? ?? ????. ?? ?? ??? ????.

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:150px;
  height:80px;
  margin:20px;
}
.antzone{
  background:radial-gradient(circle ,#ace, #f96, #1E90FF);
}
</style>
</head>
<body>
<div class="antzone"></div>
</body>
</html>

QQ截圖20161014160351.png

?? ??? ??? ?????? ??? ??? ? ????. ?? ??? ??? ????????.
我們也可以規(guī)定徑向漸變半徑的尺寸,代碼實(shí)例如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:150px;
  height:80px;
  margin:20px;
}
.closest-side{
  background:radial-gradient(closest-side,#ace, #f96, #1E90FF);
}
.closest-corner{
  background:radial-gradient(closest-corner,#ace, #f96, #1E90FF);
}
.farthest-side{
  background:radial-gradient(farthest-side,#ace, #f96, #1E90FF);
}
.farthest-corner{
  background:radial-gradient(farthest-corner,#ace, #f96, #1E90FF);
}
.contain{
  background:-webkit-radial-gradient(contain,#ace, #f96, #1E90FF);
}
.cover{
  background:-webkit-radial-gradient(cover,#ace, #f96, #1E90FF);
}
</style>
</head>
<body>
<div class="closest-side"></div>
<div class="closest-corner"></div>
<div class="farthest-side"></div>
<div class="farthest-corner"></div>
<div class="contain"></div>
<div class="cover"></div>
</body>
</html>

QQ截圖20161014160359.png

?? ?? ??: ?? ?? ????? ???? ???? ???. ?? Google Chrome??? ?????.
??? ???? ??? ?????.
(1).closest-side: ?? ???? ?? ??? ?? ??? ??? ??? ?????? ?? ??? ?????.
(2).closest-corner: ?? ???? ?? ??? ?? ??? ????? ??? ?????? ?? ??? ?????.
(3).farthest-side: ?? ???? ?? ???? ?? ? ??? ??? ?????? ?? ??? ?????.
(4).farthest-corner: ?? ???? ?? ???? ?? ? ????? ??? ?????? ?? ??? ?????.
(5).contain: ??, ?? ???? ?? ??? ?? ??? ???? ??? ?????? ?? ??? ?????. ?? ??? ?? ?????.
(6).cover: Cover, ?? ???? ?? ???? ?? ? ???? ??? ?????? ?? ??? ?????. ?? ? ??? ?????.
??? ??? ????.
QQ截圖20161014160412.png? ??? ?? ??? ???? ??? ?????.
?? ??? ?????? ??? ?? ?? ??? ??? ?? ????. ?? ?? ??? ????.

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:150px;
  height:80px;
  margin:20px;
}
.circle{
  background:radial-gradient(circle 100px,#ace, #f96, #1E90FF);
}
.ellipse{
  background:radial-gradient(ellipse 100px 50px,#ace, #f96, #1E90FF);
}
</style>
</head>
<body>
<div class="circle"></div>
<div class="ellipse"></div>
</body>
</html>

QQ截圖20161014160418.png

? ??? ?? ?? ??? ?????. ??? ?????? ?? ??? ??? ????? ???? ???? ? ?? ?????.
?? ?????? ???? ????? ??? ??? ?? ????. ?? ??? ??? ????.

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta name="author" content="http://ask.php.cn/" />
<title>php中文網(wǎng)</title>
<style type="text/css">
div{
  width:250px;
  height:250px;
}
.circle{
  background:radial-gradient(circle,#ace 30%, #f96 80%);
}
</style>
</head>
<body>
<div class="circle"></div>
</body>
</html>

QQ截圖20161014160426.png

????? ????? ??? ????? ?? 30%~80% ???? ???? ???? ???? ????.


???? ??
||
<!DOCTYPE html> <html> <head> <meta charset="gb2312"> <meta name="author" content="http://ask.php.cn/" /> <title>php中文網(wǎng)</title> <style type="text/css"> div{ width:150px; height:80px; margin:20px; } .closest-side{ background:radial-gradient(closest-side,#ace, #f96, #1E90FF); } .closest-corner{ background:radial-gradient(closest-corner,#ace, #f96, #1E90FF); } .farthest-side{ background:radial-gradient(farthest-side,#ace, #f96, #1E90FF); } .farthest-corner{ background:radial-gradient(farthest-corner,#ace, #f96, #1E90FF); } .contain{ background:-webkit-radial-gradient(contain,#ace, #f96, #1E90FF); } .cover{ background:-webkit-radial-gradient(cover,#ace, #f96, #1E90FF); } </style> </head> <body> <div class="closest-side"></div> <div class="closest-corner"></div> <div class="farthest-side"></div> <div class="farthest-corner"></div> <div class="contain"></div> <div class="cover"></div> </body> </html>