{"id":2456,"date":"2012-06-20T17:18:24","date_gmt":"2012-06-20T09:18:24","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=2456"},"modified":"2018-01-02T01:35:30","modified_gmt":"2018-01-01T17:35:30","slug":"photon-3d-css3-animate-light","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2012\/06\/photon-3d-css3-animate-light\/","title":{"rendered":"photon-3D\u5149\u7ebf\u5f15\u64ce\u9879\u76ee\u5c55\u793a\u4e0e\u4ecb\u7ecd"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=2456\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=2456<\/a><\/p>\n<h3>\u4e00\u3001\u957f\u9a71\u76f4\u5165<\/h3>\n<p>\u4f17\u6240\u5468\u77e5\uff0c3D\u6548\u679c\u662f\u5426\u903c\u771f\uff0c\u5149\u7ebf\u7684\u6a21\u62df\u5f88\u91cd\u8981\u2014\u2014\u4e0d\u540c\u89d2\u5ea6\u5149\u7ebf\uff0c\u4e0d\u540c\u7684\u9634\u5f71\/\u6295\u5f71\u663e\u793a\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"3D\u6548\u679c \u5149\u7ebf\u6a21\u62df \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201206\/3Danimal.jpg\" title=\"3D\u6548\u679c \u5149\u7ebf\u6a21\u62df\" class=\"alignnone\" width=\"300\" height=\"305\" \/><\/p>\n<p>\u4e00\u4e2a\u6b63\u65b9\u4f53\uff0c\u6211\u4eec\u6700\u591a\u53ef\u4ee5\u540c\u65f6\u770b\u52303\u9762\uff0c\u8fd93\u9762\u6211\u4eec\u4f7f\u7528CSS\u53ef\u4ee5\u5f88\u4ece\u5bb9\u7684\u6a21\u62df\uff0c\u4f46\u662f\uff0c\u8fd9\u79cd\u6a21\u62df\u5f80\u5f80\u8fc7\u4e8e\u5e73\u9762\uff0c\u597d\u6bd4\u4e0b\u9762\u8fd9\u5f20\u56fe\u2014\u2014\u662f\u7acb\u65b9\u4f53\uff1f\u8fd8\u662f\u4e00\u4e2a\u591a\u8fb9\u5f62\uff1f<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u7acb\u65b9\u4f53\u8fd8\u662f\u591a\u8fb9\u5f62\uff1f \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201206\/2012-06-20_142858.png\" title=\"\u7acb\u65b9\u4f53\u8fd8\u662f\u591a\u8fb9\u5f62\uff1f\" class=\"alignnone\" width=\"413\" height=\"381\" \/><\/p>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u6211\u4eec\u52a0\u70b9\u5149\u7ebf\u6a21\u62df\u6548\u679c\uff0c\u5219\u5c31\u6ca1\u6709\u4e0a\u8ff0\u7591\u95ee\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u589e\u52a0\u9634\u5f71\u540e\u7acb\u9a6c\u53d8\u6210\u4e86\u7acb\u65b9\u4f53 \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201206\/3d-lifang.jpg\" title=\"\u589e\u52a0\u9634\u5f71\u540e\u7acb\u9a6c\u53d8\u6210\u4e86\u7acb\u65b9\u4f53\" class=\"alignnone\" width=\"436\" height=\"403\" \/><\/p>\n<p>\u8fd9\u79cd\u5149\u7ebf\u6548\u679c\u7684\u6dfb\u52a0\u5c31\u662f<strong>photon<\/strong>\u5f15\u64ce\u6240\u505a\u7684\u4e8b\u60c5\uff01<\/p>\n<h3>\u4e8c\u3001photon\u8d44\u6e90\u4e0e\u5c55\u793a<\/h3>\n<p><a href=\"http:\/\/photon.attasi.com\/\">Photon\u9879\u76ee<\/a>\u5b98\u65b9\u9875\u9762\u5730\u5740\u4e3a\uff1a<a href=\"http:\/\/photon.attasi.com\/\">http:\/\/photon.attasi.com\/<\/a><br \/>\nGitHub\u4e0a\u5730\u5740\u4e3a\uff1a<a href=\"https:\/\/github.com\/thomasxiii\/photon\">https:\/\/github.com\/thomasxiii\/photon<\/a><\/p>\n<p>photon 3D\u5149\u7ebf\u5f15\u64ce\u672c\u8d28\u4e0a\u5c31\u662f\u4e00\u4e2aJS\u6587\u4ef6\uff0c\u70b9\u51fb\u8fd9\u91cc\u4e0b\u8f7d(\u53f3\u952e &#8211; [\u76ee\u6807|\u94fe\u63a5]\u53e6\u5b58\u4e3a)\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201206\/photon\/photon.min.js\">photon.min.js<\/a> <\/p>\n<p>\u5b98\u65b9\u4e3b\u9875\u9762\u4e0a\u5c31\u6709\u8be5\u5f15\u64ce\u7684\u4f7f\u7528\u6548\u679c\uff0c\u4e09\u79cd\u4e0d\u540c3D\u56fe\u5f62\u7684\u5149\u7ebf\u6a21\u62df\u6548\u679c\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u5b98\u65b9\u9875\u9762\u4e0a\u76843D\u5149\u7ebf\u5f15\u64ce\u4f7f\u7528\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201206\/2012-06-20_144708.png\" title=\"\u5b98\u65b9\u9875\u9762\u4e0a\u76843D\u5149\u7ebf\u5f15\u64ce\u4f7f\u7528\" class=\"alignnone\" width=\"461\" height=\"140\" \/><\/p>\n<p>\u8003\u8651\u5230\u65e5\u540e\u8be5\u7f51\u7ad9\u53ef\u80fd\u4e0d\u660e\u4e0d\u767d\u88ab\u548c\u8c10\u4ee5\u53ca\u6559\u80b2\u7f51\u7684\u540c\u5b66\u4eec\u5916\u7f51\u8bbf\u95ee\u7684\u9650\u5236\uff0c\u6545\u6211\u628a\u7b2c\u4e00\u4e2a\u5343\u7eb8\u9e643D\u6548\u679c\u8fc1\u79fb\u5230\u81ea\u5df1\u7684\u7ad9\u70b9\u4e0a\u3002\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201206\/photon-3d-lignting-engine.html\">photon 3D\u5149\u7ebf\u5f15\u64ce\u5343\u7eb8\u9e64demo<\/a><\/p>\n<p>\u663e\u7136\uff0c\u56e0\u4e3a\u662fCSS3 3D\u6548\u679c\uff0c\u56e0\u6b64\uff0c\u53ea\u80fd\u4f7f\u7528Chrome\u6d4f\u89c8\u5668\uff0c\u6216\u6700\u65b0\u7684iphone\u4e0eandroid\u8bbe\u5907\u8bbf\u95ee\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"3d\u5149\u7ebf\u5f15\u64ce\u5343\u7eb8\u9e64\u793a\u4f8b\u6548\u679c \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201206\/2012-06-20_151657.png\" title=\"3d\u5149\u7ebf\u5f15\u64ce\u5343\u7eb8\u9e64\u793a\u4f8b\u6548\u679c\" class=\"alignnone\" width=\"469\" height=\"317\" \/><\/p>\n<p><strong>demo\u4e2d\u7684\u76f8\u5173\u4ee3\u7801\u4f7f\u7528<\/strong><br \/>\n1. \u4f7f\u7528CSS3\u7b49\u7ec4\u88c5\u5343\u7eb8\u9e64<\/p>\n<p>2. \u52a0\u8f7dphoton 3D\u5149\u7ebf\u5f15\u64ce\uff0c\u5982\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>&lt;script src=\"photon.min.js\">&lt;\/script><\/pre>\n<\/div>\n<p>3. \u5bf9\u7167\u4e0b\u9762\u7684\u4f7f\u7528\u6587\u6863\uff0c\u7b80\u5355\u5957\u7528\u5373\u53ef<\/p>\n<h3>\u4e09\u3001photon\u4f7f\u7528\u6587\u6863<\/h3>\n<p><strong>\u7b80\u5355\u7684\u7528\u6cd5<\/strong><\/p>\n<div style=\"padding-left:1em; margin-top:0.5em;\">\n<strong>\u521b\u5efa\u4e00\u4e2a\u5149\u6e90<\/strong><br \/>\n<code>light<\/code>\u5bf9\u8c61\u8868\u793a3D\u9762\u88ab\u7167\u4eae\u7684\u90a3\u4e2a\u70b9\u3002<\/p>\n<div class=\"zxx_code\">\n<pre><span style=\"color:green;\">\/\/ \u521b\u5efa\u4e00\u4e2a light \u4f4d\u4e8e x: 0, y: 0, z: 100<\/span>\nvar light = new Photon.Light();<\/pre>\n<\/div>\n<p><strong>\u5b9a\u4e49\u4e00\u4e2a\u9762<\/strong><br \/>\n<code>Face<\/code>\u5bf9\u8c61\u6307\u5b9a\u54ea\u4e2aDOM\u539f\u56e0\u5e94\u8be5\u88ab\u9634\u5f71\u6216\u7167\u4eae\u3002<\/p>\n<div class=\"zxx_code\">\n<pre><span style=\"color:green;\">\/\/  \u4f7f\u7528\u6700\u5927\u6295\u5f71 .5 \u521b\u5efaface<\/span>\nvar face = new Photon.Face( $('.face-1')[0] );<\/pre>\n<\/div>\n<p><strong>\u6e32\u67d3<\/strong><br \/>\n\u5e94\u7528<code>render<\/code>\u65b9\u6cd5\uff0c\u57fa\u4e8e\u521b\u5efa\u7684light(\u5149)\u6295\u5f71\u6216\u7167\u4eae\u521b\u5efa\u7684face(\u9762)\u3002<\/p>\n<div class=\"zxx_code\">\n<pre><span style=\"color:green;\">\/\/ \u76f8\u5173\u5149\u7ebf\u4e0e\u5e73\u9762\u7684\u6e32\u67d3<\/span>\nface.render(light, true);<\/pre>\n<\/div>\n<\/div>\n<p><strong>\u66f4\u8be6\u7ec6\u7684\u53c2\u8003<\/strong><\/p>\n<div style=\"padding-left:1em; margin-top:0.5em;\">\n<strong>Light<\/strong><br \/>\n<code style=\"background-color:#f0f3f9; font-size:1em;\">Photon.Light( x = 0, y = 0, z = 100 )<\/code><br \/>\n\u521b\u5efa\u4e00\u4e2a<code>Light<\/code>\u5bf9\u8c61\uff0c\u9ed8\u8ba4\u4f4d\u7f6e\u76f4\u6307\u89c6\u56fe\u3002<\/p>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">moveTo( x, y, z )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u5149\u7ebf\u7684\u65b0\u5750\u6807\u3002<\/p>\n<p><strong>FACE<\/strong><br \/>\n<code style=\"background-color:#f0f3f9; font-size:1em;\">Photon.Face( element, maxShade = .5, maxTint = 0, isBackfaced = false )<\/code><br \/>\n\u521b\u5efa\u4e00\u4e2a\u65b0\u7684<code>Face<\/code>\u5bf9\u8c61\uff0c\u9ed8\u8ba4\uff0c\u6bcf\u4e2a\u5143\u7d20(element)\u90fd\u4f1a\u88ab\u5fae\u6295\u5f71\u3002<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>element<\/code> <small style=\"color:gray;\">&#58;object<\/small><\/dt>\n<dd>\u5373\u5c06\u88ab\u5e94\u7528\u6295\u5f71\u7684DOM\u5bf9\u8c61<\/dd>\n<\/dl>\n<dl>\n<dt><code>maxShade<\/code> <small style=\"color:gray;\">:float<\/small><\/dt>\n<dd>\u7ed9\u5143\u7d20\u6dfb\u52a0\u7684\u6700\u5927\u6697\u5ea6\u503c 0-1<\/dd>\n<\/dl>\n<dt><code>maxTint<\/code> <small style=\"color:gray;\">:float<\/small><\/dt>\n<dd>\u7ed9\u5143\u7d20\u6dfb\u52a0\u7684\u6700\u5927\u4eae\u5ea6\u503c 0-1<\/dd>\n<\/dl>\n<dl>\n<dt><code>isBackfaced<\/code> <small style=\"color:gray;\">:boolean<\/small><\/dt>\n<dd>\u51b3\u5b9a\u5143\u7d20\u7684\u80cc\u9762\u662f\u5426\u6295\u5f71\uff0c\u5c31\u50cf\u5b83\u81ea\u5df1\u7684\u8fd9\u4e00\u9762\u3002\u7ecf\u9a8c\u6cd5\u5219\uff1a\u5982\u679c\u5143\u7d20\u7684\u76f8\u53cd\u9762\u662f\u53ef\u89c1\u7684\uff0c\u60a8\u53ef\u80fd\u60f3\u8bbe\u7f6e\u4e3a<code>true<\/code>.<\/dd>\n<\/dl>\n<\/div>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">render( light, getNewRotations, parentRotations )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u76f8\u5bf9\u4e8e<code>Light<\/code>\u5bf9\u8c61\u7684\u89d2\u5ea6\u8ba9\u5143\u7d20\u9634\u5f71\u6216\u53d8\u4eae\u3002\u8fd9\u4e9b\u6e32\u67d3\u5e94\u7528\u5728\u5143\u7d20\u4e2d\u542b\u6709<code>photon-shader<\/code>\u8fd9\u4e2a\u7c7b\u540d\u7684\u7a7adiv\u4e0a\u3002<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>light<\/code> <small style=\"color:gray;\">&#58;Light<\/small><\/dt>\n<dd>\u7528\u6765\u8ba1\u7b97\u6295\u5f71\u6216\u662f\u7167\u4eae\u7684<code>light<\/code>\u5bf9\u8c61\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>getNewRotations<\/code> <small style=\"color:gray;\">:boolean<\/small><\/dt>\n<dd>\u5982\u679c\u662f<code>true<\/code>, \u5728\u9634\u5f71\u5e94\u7528\u4e4b\u524d\uff0c\u4e00\u4e2a\u65b0\u7684\u65cb\u8f6c\u77e2\u91cf\u88ab\u8ba1\u7b97\u3002\u5f53\u5143\u7d20\u7684transform\u5c5e\u6027\u6539\u53d8\u7684\u65f6\u5019\u4f7f\u7528\u8fd9\u4e2a\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>parentRotations<\/code> <small style=\"color:gray;\">&#58;object<\/small><\/dt>\n<dd>\u7236\u5bf9\u8c61\u7684\u89d2\u5ea6(x, y \u4ee5\u53ca z \u5f27\u5ea6)\u3002\u8fd9\u4e9b\u4e3b\u8981\u5e94\u7528\u5728<code>FaceGroup<\/code>\u5bf9\u8c61\u4e0a\u3002<\/dd>\n<\/dl>\n<\/div>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">setMaxShade( value )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u6700\u5927\u9634\u5f71\u503c: 0-1.<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>value<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<\/dl>\n<\/div>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">setMaxTint( value )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u6700\u5927\u7740\u8272\u503c: 0-1.<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>value<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<\/dl>\n<\/div>\n<p><strong>FaceGroup<\/strong><br \/>\n<code style=\"background-color:#f0f3f9; font-size:1em;\">Photon.FaceGroup( parent, faces, maxShade = .5, maxTint = 0, isBackfaced = false )<\/code><br \/>\n\u521b\u5efa\u4e00\u4e2a\u65b0\u7684<code>FaceGroup<\/code>\u5bf9\u8c61\uff0c\u5141\u8bb8\u4e00\u6b21\u5e94\u7528\u6e32\u67d3\u591a\u4e2a\u9762\u3002\u5176\u4e5f\u8ba1\u7b97\u5d4c\u5957\u5143\u7d20\u7684\u89d2\u5ea6\uff08\u5982\u7236\u5143\u7d20\u65cb\u8f6c\u4e86\uff0c\u91cc\u9762\u5143\u7d20\u7684\u89d2\u5ea6\u4f1a\u6839\u636e\u8fd9\u4e2a\u5b57\u6bb5\u8ba1\u7b97\u8c03\u6574\uff09\u3002<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>parent<\/code> <small style=\"color:gray;\">&#58;object<\/small><\/dt>\n<dd>\u5305\u542bN\u591a\u9762\u7684\u5bb9\u5668\u5143\u7d20\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>faces<\/code> <small style=\"color:gray;\">&#58;array<\/small><\/dt>\n<dd><code>parent<\/code>\u5bf9\u8c61\u4e2d\u8981\u88ab\u9634\u5f71\u5316\u7684DOM\u5143\u7d20\u6570\u7ec4\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>maxShade<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<dd>\u591a\u4e2a\u9762\u4e0a\u6dfb\u52a0\u7684\u6700\u5927\u9ed1\u8272\u7a0b\u5ea6\uff1a0-1<\/dd>\n<\/dl>\n<dl>\n<dt><code>maxTint<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<dd>\u591a\u4e2a\u9762\u4e0a\u6dfb\u52a0\u7684\u6700\u5927\u767d\u8272\u7a0b\u5ea6\uff1a0-1<\/dd>\n<\/dl>\n<dl>\n<dt><code>isBackfaced<\/code> <small style=\"color:gray;\">&#58;boolean<\/small><\/dt>\n<dd>\u51b3\u5b9a<code>faces<\/code>\u7684\u80cc\u9762\u662f\u5426\u6295\u5f71\uff0c\u5c31\u50cf\u5b83\u81ea\u5df1\u7684\u8fd9\u4e00\u9762\u3002\u7ecf\u9a8c\u6cd5\u5219\uff1a\u5982\u679c\u5143\u7d20\u7684\u76f8\u53cd\u9762\u662f\u53ef\u89c1\u7684\uff0c\u60a8\u53ef\u80fd\u5f97\u8bbe\u7f6e\u4e3a<code>true<\/code>.<\/dd>\n<\/dl>\n<\/div>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">Photon.FaceGroup( parent, faces, maxShade = .5, maxTint = 0, isBackfaced = false )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u76f8\u5bf9\u4e8e<code>Light<\/code>\u5bf9\u8c61\u7684\u89d2\u5ea6\u8ba9\u5143\u7d20\u9634\u5f71\u6216\u53d8\u4eae\u3002\u8fd9\u4e9b\u6e32\u67d3\u5e94\u7528\u5728\u5143\u7d20\u4e2d\u542b\u6709<code>photon-shader<\/code>\u8fd9\u4e2a\u7c7b\u540d\u7684\u7a7adiv\u4e0a\u3002<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>light<\/code> <small style=\"color:gray;\">&#58;Light<\/small><\/dt>\n<dd>\u7528\u6765\u8ba1\u7b97\u6295\u5f71\u6216\u662f\u7167\u4eae\u7684<code>light<\/code>\u5bf9\u8c61\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>getNewGroupRotations<\/code> <small style=\"color:gray;\">:boolean<\/small><\/dt>\n<dd>\u5982\u679c\u662f<code>true<\/code>, \u5728<code>parent<\/code>\u5143\u7d20\u7684\u9634\u5f71\u5e94\u7528\u4e4b\u524d\uff0c\u65b0\u7684\u77e2\u91cf\u4f1a\u5f71\u54cd\u6240\u6709<code>faces<\/code>\u7684\u89d2\u5ea6\u3002\u5f53<code>parent<\/code>\u7684transform\u5c5e\u6027\u6539\u53d8\u7684\u65f6\u5019\u4f7f\u7528\u8fd9\u4e2a\u3002<\/dd>\n<\/dl>\n<dl>\n<dt><code>getNewFaceRotations<\/code> <small style=\"color:gray;\">&#58;boolean<\/small><\/dt>\n<dd>\u5982\u679c\u4e3a<code>true<\/code>, \u6240\u6709<code>faces<\/code>\u7684\u89d2\u5ea6\u77e2\u91cf\u5c06\u88ab\u8ba1\u7b97\u3002\u5f53<code>faces<\/code>\u7684transform\u5c5e\u6027\u6539\u53d8\u7684\u65f6\u5019\u4f7f\u7528\u8fd9\u4e2a\u3002<\/dd>\n<\/dl>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">setMaxShade( value )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u6700\u5927\u9634\u5f71\u503c: 0-1.<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>value<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<\/dl>\n<\/div>\n<p><code style=\"background-color:#f0f3f9; font-size:1em;\">setMaxTint( value )<\/code><br \/>\n\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u6700\u5927\u7740\u8272\u503c: 0-1.<\/p>\n<div style=\"padding-left:1em;\">\n<dl>\n<dt><code>value<\/code> <small style=\"color:gray;\">&#58;float<\/small><\/dt>\n<\/dl>\n<\/div>\n<\/div>\n<\/div>\n<h3>\u56db\u3001\u7ed3\u8bed<\/h3>\n<p>\u5c31\u76ee\u524d\u800c\u8a00\uff0c\u5bf9\u4e8e99%\u7684\u540c\u884c\u800c\u8a00\uff0c\u672c\u6587\u5185\u5bb9\u662f\u6ca1\u6709\u5b9e\u7528\u4ef7\u503c\u7684\u3002\u4e0d\u8fc7\uff0c\u589e\u52a0\u773c\u754c\u4ee5\u53ca\u76f8\u5173\u7684\u611f\u6027\u8ba4\u8bc6\u8bf4\u4e0d\u5b9a\u4f1a\u57285\u5e74\u4e4b\u540e\u5bf9\u60a8\u7684\u5de5\u4f5c\u4e8e\u6210\u957f\u6709\u4e0d\u5c0f\u7684\u5e2e\u52a9\u2014\u2014\u5546\u54c13D\u5b9e\u7269\u5c55\u793a\u2014\u2014\u70ed\u95e8\u4e0e\u6d41\u884c\u2014\u2014\u8bf4\u4e0d\u5b9a\u5c31\u662f\u4e86\u5462\uff01\uff01<\/p>\n<p>\u4e0d\u5fc5\u6df1\u5165\uff0c\u5927\u5bb6\u4e86\u89e3\u4e86\u89e3\u5373\u53ef\u3002\u611f\u8c22\u9605\u8bfb\uff0c\u6587\u4e2d\u6709\u8868\u8ff0\u4e0d\u51c6\u786e\u4e4b\u5904\uff0c\u6b22\u8fce\u6307\u6b63\u3002<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea<a href=\"http:\/\/www.zhangxinxu.com\/\">\u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<\/a>[<a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a>]<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=2456\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=2456<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f17\u6240\u5468\u77e5\uff0c3D\u6548\u679c\u662f\u5426\u903c\u771f\uff0c\u5149\u7ebf\u7684\u6a21\u62df\u5f88\u91cd\u8981\u2014\u2014\u4e0d\u540c\u89d2\u5ea6\u5149\u7ebf\uff0c\u4e0d\u540c\u7684\u9634\u5f71\/\u6295\u5f71\u663e\u793a\u3002<br \/>\n\u4e00\u4e2a\u6b63\u65b9\u4f53\uff0c\u6211\u4eec\u6700\u591a\u53ef\u4ee5\u540c\u65f6\u770b\u52303\u9762\uff0c\u8fd93\u9762\u6211\u4eec\u4f7f\u7528CSS\u53ef\u4ee5\u5f88\u4ece\u5bb9\u7684\u6a21\u62df\uff0c\u4f46\u662f\uff0c\u8fd9\u79cd\u6a21\u62df\u5f80\u5f80\u8fc7\u4e8e\u5e73\u9762\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u6211\u4eec\u589e\u52a0\u70b9\u9634\u5f71\uff0c\u663e\u7136\uff0c\u6548\u679c\u5c31\u5b8c\u5168\u4e0d\u4e00\u6837\u3002\u800c\u8fd9\u79cd\u5149\u7ebf\u6548\u679c\u7684\u6dfb\u52a0\u5c31\u662fphoton\u5f15\u64ce\u6240\u505a\u7684\u4e8b\u60c5\uff01<\/p>\n<p>\u672c\u6587\u5c31\u5c06\u4ecb\u7ecd\u8fd9\u4e2a\u5f88\u8d5e\u76843D\u5149\u7ebf\u6e32\u67d3\u5f15\u64cephoton. \u5e0c\u671b\u5bf9\u611f\u5174\u8da3\u7684\u670b\u53cb\u63d0\u4f9b\u70b9\u5e2e\u52a9\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[303,177,726,287,259],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/2456"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2456"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/2456\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}