{"id":4992,"date":"2015-11-01T22:14:10","date_gmt":"2015-11-01T14:14:10","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=4992"},"modified":"2020-04-04T18:17:30","modified_gmt":"2020-04-04T10:17:30","slug":"css3-border-radius-tips","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2015\/11\/css3-border-radius-tips\/","title":{"rendered":"\u79cb\u6708\u4f55\u65f6\u4e86\uff0cCSS3 border-radius\u77e5\u591a\u5c11\uff1f"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/\">https:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=4992\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=4992<\/a><\/p>\n<p><strong>\u8865\u5145\u4e8e2020-04-04<\/strong><\/p>\n<p>5\u5e74\u540e\u518d\u56de\u9996\uff0c\u53d1\u73b0\u5f53\u5e74\u5199\u7684\u8fd9\u7bc7\u6587\u7ae0\u53ef\u771f\u662fshit\uff0c\u6587\u4e2d\u6709\u975e\u5e38\u591a\u7684\u7406\u89e3\u9519\u8bef\u7684\u5730\u65b9\uff0c\u4f8b\u5982<code>border-radius<\/code>\u534a\u5f84\u8bbe\u7f6e\u5f88\u5927\u65f6\u5019\u7684\u6e32\u67d3\u673a\u5236\uff0c\u8fd9\u7bc7\u6587\u7ae0\u76f4\u63a5\u5c31\u5728\u778e\u51e0\u628a\u626f\u6de1\uff0c\u5927\u5bb6\u5ffd\u7565\u4e4b\u3002<\/p>\n<p>&#8212;&#8212;&#8211;<\/p>\n<p>\u4eca\u592910\u6708\u672b\uff0c\u8fc7\u4e86\u4eca\u5929\uff0c\u79cb\u5929\u4e5f\u7b97\u662f\u8d70\u5230\u5934\u4e86\uff0c\u4f46\u662f\uff0c\u5bf9\u4e8e\u524d\u7aef\u7684\u5b66\u4e60\uff0c\u8def\u8fd8\u6f2b\u957f\uff0c\u4eca\u5929\u5c31\u8bf4\u8bf4CSS3 <code>border-radius<\/code>\u66f4\u6df1\u5165\u7684\u4e00\u4e9btips. \u672c\u6587\u5c5e\u4e8e\u8fdb\u9636\u77e5\u8bc6\u70b9\uff0c\u6240\u4ee5\uff0c\u4e0b\u9762\u5185\u5bb9\u4e0d\u4f1a\u5570\u55e6\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\uff0c\u9002\u5408\u6709\u4e00\u5b9a\u662f\u8981\u7ecf\u9a8c\u7684\u5c0f\u4f19\u4f34\u3002<\/p>\n<h3>\u4e00\u3001border-radius\u79c1\u6709\u524d\u7f00\u62dc\u62dc<\/h3>\n<p>\u8fd8\u6709\u4e2a\u628a\u6708\u5c312016\u5e74\u4e86\uff0c00\u540e\u90fd\u5df2\u7ecf\u767b\u4e0a\u5386\u53f2\u821e\u53f0\u4e86\uff0c\u5927\u5bb6\u90fd\u61c2\u6211\u8bf4\u7684\u610f\u601d\uff0c\u6d4f\u89c8\u5668\u4e2a\u628a\u5e74\u524d\u5c31\u628a\u79c1\u6709\u524d\u7f00\u7ed9\u53bb\u6389\u4e86\uff0c\u73b0\u5728\u5b8c\u5168\u6ca1\u5fc5\u8981\u8fd8\u50bb\u50bb\u4f7f\u7528<code>-webkit-border-radius<\/code>, <code>-moz-border-radius<\/code>\uff0c\u81f3\u5c11\u6211\u662f\u65e9\u5c31\u4e0d\u4f7f\u7528\u4e86\uff0c\u4f60\u968f\u610f~<\/p>\n<h3>\u4e8c\u3001border-radius\u767e\u5206\u6bd4\u503c<\/h3>\n<p><code>border-radius<\/code>\u652f\u6301\u767e\u5206\u6bd4\u503c\uff0c\u4f8b\u5982<code>border-radius:50%<\/code>. \u5982\u679c\u5927\u5bb6\u770b\u65e9\u4e9b\u5e74CSS3 <code>border-radius<\/code>\u7684\u6587\u6863\u6216\u8005\u6587\u7ae0\uff0c\u4f1a\u53d1\u73b0\uff0c\u6839\u672c\u5c31\u6ca1\u6709\u63d0\u8fc7\u767e\u5206\u6bd4\u503c\u8fd9\u4e00\u832c\u3002\u7a76\u5176\u539f\u56e0\uff0c\u662f\u56e0\u4e3a\u767e\u5206\u6bd4\u503c\u7684\u652f\u6301\u662f\u540e\u6765\u624d\u652f\u6301\u7684\uff0c\u8ddf\u6570\u503c\u4e0d\u662f\u4e00\u8d77\u51fa\u6765\u7684\u3002\u6bd4\u65b9\u8bf4\u67d0\u4e9b\u8001\u7248\u672c\u7684Android\u673a\u5b50\uff0c<code>border-radius:50%<\/code>\u5b83\u5c31\u4e0d\u8ba4\u8bc6\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u4e8b\u60c5\u5df2\u7ecf\u8fc7\u53bb\u5f88\u591a\u5e74\u4e86\uff0c\u73b0\u5728\u5927\u5bb6\u53ef\u4ee5\u4e0d\u7528\u5728\u610f\u8fd9\u4e9b\u7ec6\u8282\u4e86\u3002<\/p>\n<p>OK\uff0c\u5927\u5bb6\u90fd\u77e5\u9053\u8fd9\u4e2a\u767e\u5206\u6bd4\u662f\u76f8\u5bf9\u5355\u4f4d\uff0c\u4f46\u662f\uff0c\u4e0d\u540c\u5c5e\u6027\u7684\u767e\u5206\u6bd4\u503c\u76f8\u5bf9\u7684\u5185\u5bb9\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u5bf9\u5427\uff0c\u6bd4\u65b9\u8bf4<code>translate<\/code>\u662f\u81ea\u8eab\uff0c<code>width\/height<\/code>\u662f\u7236\u7ea7\uff0c<code>background-position<\/code>\u9700\u8981\u5c3a\u5bf8\u5dee\u8ba1\u7b97\u7b49\u3002\u90a3\u8fd9\u91cc<code>border-radius<\/code>\u7684\u767e\u5206\u6bd4\u503c\u76f8\u5bf9\u7684\u5c5e\u6027\u662f\uff1f<\/p>\n<style>.radius-test1 { width: 100px; height: 100px; border: 50px solid #cd0000; border-radius: 50%; }<\/style>\n<p>\u6211\u4eec\u7092\u4e2a\u677f\u6817\u77e5\u9053\u4e86\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.radius-test1 { width: 100px; height: 100px; border: 50px solid #cd0000; border-radius: 50%; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test1>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test1\"><\/div>\n<p>\u54e6\u54e6\u54e6\u54e6\uff0c\u6211\u77e5\u9053\u4e86\uff0c\u662f\u76f8\u5bf9\u4e8e\u5143\u7d20\u5360\u636e\u5c3a\u5bf8\u7684\u767e\u5206\u6bd4(\u7c7b\u4f3cjQuery <code>outerWidth()<\/code>\/<code>outerHeight()<\/code>\u65b9\u6cd5\u4ee3\u8868\u5c3a\u5bf8)\uff0c\u4e5f\u5c31\u662f\u5305\u542b\u8fb9\u6846\uff0cpadding\u540e\u7684\u5c3a\u5bf8\u3002\u800c\u4e0d\u662f\u5355\u7eaf\u5730\u76f8\u5bf9\u4e8e<code>width\/height<\/code>\u503c\u3002<\/p>\n<p>\u4e8e\u662f\u4e4e\uff0c\u6211\u4eec\u8981\u5b9e\u73b0\u4e00\u4e2a\u6b63\u65b9\u5f62\u5143\u7d20\u7684\u5706\u89d2\u6548\u679c\uff08\u4f8b\u5982\u7f51\u7ad9\u5934\u50cf\uff09\uff0c\u4e00\u4e2a<code>50%<\/code>\u5c31\u53ef\u4ee5\u641e\u5b9a\uff0c\u800c\u65e0\u9700\u53bb\u8ba1\u7b97\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201510\/wanshenggui.jpg\" width=\"240\" height=\"240\" alt=\"\u4e07\u5723\u8282-\u626e\u9b3c\" class=\"mt10\" style=\"border-radius: 50%;\" \/><\/p>\n<p><code>border-radius<\/code>\u8fd8\u6709\u4e00\u4e2a<strong>\u5927\u503c\u7279\u6027<\/strong>\uff0c\u4e5f\u5c31\u662f\u503c\u5f88\u5927\u7684\u65f6\u5019\uff0c\u53ea\u4f1a\u4f7f\u7528\u80fd\u591f\u6e32\u67d3\u7684\u5706\u89d2\u5927\u5c0f\u6e32\u67d3\u3002\u56e0\u6b64\uff0c\u8981\u5b9e\u73b0\u4e00\u4e2a\u6b63\u65b9\u5f62\u5143\u7d20\u7684\u5706\u89d2\u6548\u679c\uff08\u4f8b\u5982\u7f51\u7ad9\u5934\u50cf\uff09\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5f88\u5927\u7684\u5706\u89d2\u503c\uff0c\u540c\u6837\u662f\u4e0d\u9700\u8981\u8ba1\u7b97\u7684\u3002\u4f8b\u5982\uff0c\u4e0b\u9762240*240\u50cf\u7d20\u56fe\u7247\uff0c\u6211\u8bbe\u7f6e\u5706\u89d2\u5927\u5c0f<code>300px<\/code>\uff0c\u8ddf\u4e0a\u9762\u6548\u679c\u4e00\u6837\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201510\/wanshenggui.jpg\" width=\"240\" height=\"240\" alt=\"\u4e07\u5723\u8282-\u626e\u9b3c\" class=\"mt10\" style=\"border-radius: 300px;\" \/><\/p>\n<p>\u54a6\uff1f\u8c8c\u4f3c\u5927\u6570\u503c<code>border-radius<\/code>\u503c\u597d\u50cf\u548c<code>50%<\/code>\u6ca1\u4ec0\u4e48\u533a\u522b\u554a\uff1f\u56e0\u4e3a\u4e0a\u9762\u7684\u56fe\u7247\u662f\u6b63\u65b9\u5f62\uff0c\u5b9e\u9645\u4e0a\u4e24\u8005\u533a\u522b\u4e0d\u5c0f\uff0c\u6211\u4eec\u628a\u4e0a\u9762\u7ea2\u5708\u5708\u4f8b\u5b50\u7684<code>height<\/code>\u6539\u6210<code>200px<\/code>\u770b\u770b\u4e24\u8005\u5bf9\u5e94\u6548\u679c\uff1a<\/p>\n<style>.radius-test2 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 50%; }.radius-test3 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 300px; }<\/style>\n<div class=\"zxx_code\">\n<pre>.radius-test2 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 50%; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>.radius-test3 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 300px; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test2>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test2\"><\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test3>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test3\"><\/div>\n<p>\u6b64\u65f6\uff0c\u5dee\u522b\u5c31\u5f88\u660e\u663e\u4e86\u3002\u4e0a\u9762\u7684\u957f\u5f97\u50cf\u9a6c\u6876\u76d6\u5b50, \u800c\u540e\u9762\u957f\u5f97\u50cf\u64cd\u573a\u8dd1\u9053\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/ask.gif\" width=\"150\" height=\"150\" alt=\"\u7591\u95ee\" class=\"alignnone\" \/><\/p>\n<p>\u4e3a\u4ec0\u4e48\u5462\uff1f<code>50%<\/code>\u6210\u4e3a\u201c\u9a6c\u6876\u76d6\u5b50\u201d\u8fd8\u597d\u7406\u89e3\uff0c\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u5206\u522b50%\u5706\u89d2\u5316\uff1b\u4f46\u662f\u540e\u9762\u660e\u660e\u5706\u89d2300\u50cf\u7d20\uff0c\u6bd4\u5360\u636e\u9ad8\u5ea6\u9700\u8981\u7684\u5706\u89d2\u5927\u5c0f\u503c\u8981\u9ad8\u51fa\u4e0d\u5c11\uff0c\u4e3a\u4ec0\u4e48\u8fd8\u662f\u76f4\u7684\u5462\uff1f\u54c8\u54c8\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u56e0\u4e3a\u592a\u5927\u4e86\uff0c\u6240\u4ee5\u624d\u4f1a\u53d8\u6210\u7684\u201c\u64cd\u573a\u8dd1\u9053\u201d\u3002<\/p>\n<p>\u6ca1\u9519\uff0c\u56e0\u4e3a\u503c\u5927\u4e86\uff0c\u8981\u5f04\u6e05\u6b64\u95ee\u9898\uff0c\u6709\u5fc5\u8981\u6df1\u5165\u4e0b\u3002\u4e0d\u884c\u4e86\uff0c\u4e0a\u5e74\u7eaa\u4e86\uff0c\u56f0\u4e86\uff0c\u53bb\u6d17\u6fa1\u7761\u89c9\u4e86\u660e\u5929\u7ee7\u7eed\u3002<\/p>\n<h3>\u4e09\u3001border-radius\u5355\u503c\u8868\u73b0\u6df1\u5165<\/h3>\n<p>\u7531\u4e8e\u6211\u4eec\u5e73\u65f6\u4f7f\u7528<code>border-radius<\/code>\u7edd\u5927\u591a\u6570\u60c5\u51b5\u662f\u90fd\u5355\u503c\uff0c\u4f8b\u5982<code>border-radius: 300px<\/code>\uff0c\u4e8e\u662f\uff0c\u4e45\u800c\u4e45\u4e4b\u53ef\u90a3\u4f1a\u5ffd\u7565\u8fd9\u6837\u4e00\u4e2a\u4e8b\u5b9e\uff0c\u90a3\u5c31\u662f<code>border-radius<\/code>\u5355\u503c\u5b9e\u9645\u4e0a\u662f\u4e00\u79cd\u7b80\u5199\u3002\u5c31\u8ddf<code>padding:300px<\/code>, <code>border-width:300px<\/code>\u662f\u4e00\u6837\u7684\uff0c\u662f\u5404\u4e2a\u65b9\u4f4d\u7b49\u503c\u65f6\u5019\u7684\u4e00\u79cd\u7b80\u5316\u4e66\u5199\u5f62\u5f0f\u3002\u4f46\u662f\uff0c\u548c\u4e00\u822c\u7684\u53ef\u7b80\u5199CSS\u5c5e\u6027\u76f8\u6bd4\uff0c<code>border-radius<\/code>\u8981\u6bd4\u770b\u4e0a\u53bb\u7684\u590d\u6742\u7684\u591a\uff0c\u8868\u9762\u4e0a\u662f\u7405\u740a\u5c71\u4f2f\u7235\uff0c\u5b9e\u9645\u4e0a\u662f\u5f53\u5e74\u5927\u6881\u7684\u8d35\u65cf\u5c11\u5e74\u3002<\/p>\n<p>\u6211\u4eec\u5c06<code>border-radius: 300px<\/code>\u8fd8\u539f\u6210\u5176\u6574\u5bb9\u524d\u7684\u6a21\u6837\uff0c\u7ed3\u679c\u662f\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>border-radius: 300px 300px 300px 300px\/300px 300px 300px 300px;<\/pre>\n<\/div>\n<p>\u6211\u52d2\u4e2a\u64e6\uff0c\u4e00\u526f\u628a\u4e03\u5927\u59d1\u516b\u5927\u5a46\u90fd\u8df3\u51fa\u6765\u7684\u5373\u89c6\u611f\uff0c\u8fd9\u4e48\u8fd9\u4e2a\u591a~~<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/liangmangzheng.jpg\" width=\"240\" height=\"133\" alt=\"\u957f\u5f97\u597d\u50cf\u4e00\u6837\" class=\"alignnone\" \/><\/p>\n<p>\u867d\u7136\u770b\u4e0a\u53bb\u90fd\u662f<code>300px<\/code>, \u957f\u5f97\u597d\u50cf\u4e00\u6837\uff0c\u5b9e\u9645\u4e0a\uff0c\u8868\u793a\u7684\u542b\u4e49\u5404\u4e0d\u76f8\u540c\uff0c\u7ffb\u8bd1\u6210\u666e\u901a\u8bdd\u5c31\u662f\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>border-radius: \u5de6\u4e0a\u89d2\u6c34\u5e73\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u53f3\u4e0a\u89d2\u6c34\u5e73\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u53f3\u4e0b\u89d2\u6c34\u5e73\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u5de6\u4e0b\u89d2\u6c34\u5e73\u5706\u89d2\u534a\u5f84\u5927\u5c0f\/\u5de6\u4e0a\u89d2\u5782\u76f4\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u53f3\u4e0a\u89d2\u5782\u76f4\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u53f3\u4e0b\u89d2\u5782\u76f4\u5706\u89d2\u534a\u5f84\u5927\u5c0f \u5de6\u4e0b\u89d2\u5782\u76f4\u5706\u89d2\u534a\u5f84\u5927\u5c0f;<\/pre>\n<\/div>\n<p>\u4e5f\u5c31\u662f\u659c\u6760\u524d\u7684\u662f\u6c34\u5e73\u65b9\u5411\uff0c\u659c\u6760\u540e\u9762\u7684\u662f\u5782\u76f4\u65b9\u5411\u3002<\/p>\n<p>\u867d\u7136<code>border-radius<\/code>\u548c<code>border-width<\/code>\/<code>border-color<\/code>\u7b49\u90fd\u662f<code>border<\/code>\u6253\u5934\u7684\uff0c\u4f46\u662f\uff0c\u4e24\u8005\u7f29\u5199\u4e0e\u65b9\u4f4d\u7684\u8868\u793a\u786e\u5b9e\u4e0d\u4e00\u6837\u7684\u3002\u4f20\u7edf\u7684\u8fb9\u6846\u5c5e\u6027<code>border<\/code>\u56db\u4e2a\u503c\u5206\u522b\u8868\u793a\u4e0a\u8fb9\u6846\uff0c\u53f3\u8fb9\u6846\uff0c\u4e0b\u8fb9\u6846\uff0c\u5de6\u8fb9\u6846\u3002\u4f46\u662f\uff0c<code>border-radius<\/code>\u6307\u7684\u5219\u662f\u89d2\u843d\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u773c\u775b\u7684\u5173\u6ce8\u70b9\uff0c\u9700\u8981\u79fb\u52a8\u4e0b\uff0c\u4ece\u8fb9\u6846\u5230\u89d2\u843d(\u5982\u4e0b\u56fe\u6240\u793a)(\u6bcf\u4e2a\u65b9\u4f4d\u90fd\u5982\u6b64\u9006\u65f6\u9488\u79fb\u52a8)\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/view-translate-done.png\" width=\"240\" height=\"286\" alt=\"\u5b9e\u73b0\u7684\u8f6c\u79fb\" class=\"alignnone\" \/><\/p>\n<p>\u90fd\u662f\u6700\u591a4\u4e2a\u503c\uff0c1~3\u4e2a\u7f29\u5199\u7684\u89c4\u5219\u4e5f\u662f\u4e00\u6837\u7684\uff08\u4e00\u4e2a\u662f\u8fb9\uff0c\u4e00\u4e2a\u662f\u89d2\uff09\uff0c\u4e0d\u8d58\u8ff0\u3002<\/p>\n<p>\u90a3\u4e0a\u9762\u63d0\u5230\u7684\u201c\u6c34\u5e73\/\u5782\u76f4\u201d\u53c8\u662f\u4ec0\u4e48\u9b3c\u5462\uff1f<\/p>\n<p>\u5bf9\u4e8e\u6b63\u5706\uff0c\u6211\u4eec\u57fa\u672c\u4e0a\u5f88\u5c11\u63d0\u201c\u6c34\u5e73\u534a\u5f84\u201d\u548c\u201c\u5782\u76f4\u534a\u5f84\u201d\uff0c\u56e0\u4e3a\uff0c\u534a\u5f84\u90fd\u662f\u4e00\u6837\u957f\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u6807\u51c6\u692d\u5706\uff0c\u90a3\u5c31\u4e0d\u4e00\u6837\u4e86\uff0c\u56e0\u4e3a\u5b58\u5728\u6700\u957f\u534a\u5f84\u548c\u6700\u5c0f\u534a\u5f84\u3002\u5728web\u4e2d\uff0c\u5706\u89d2\u7684\u6c34\u5e73\u534a\u5f84\u6307\u7684\u5c31\u662f\u692d\u5706\u7684\u6c34\u5e73\u534a\u5f84\uff0c\u5782\u76f4\u534a\u5f84\u5c31\u662f\u692d\u5706\u4e0b\u56fe\u6240\u793a\u7684\u5782\u76f4\u534a\u5f84\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_191017.png\" width=\"117\" height=\"216\" alt=\"\u692d\u5706\u5782\u76f4\u6c34\u5e73\u534a\u5f84\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u4e00\u4e2a\u6c34\u5e73\u534a\u5f84\u548c\u4e00\u4e2a\u5782\u76f4\u534a\u5f84\u6240\u5939\u8d77\u7684\u90a3<code>1\/4<\/code>\u6bb5\u5706\u5f27\u5c31\u662f\u6211\u4eec\u5e73\u65f6\u770b\u7684\u7684\u5706\u89d2\u5448\u73b0\uff0c\u5982\u4e0b\u53d8\u8272\u663e\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_191017-highlight.png\" width=\"117\" height=\"216\" alt=\"\u9ad8\u4eae\u7684\u5706\u5f27\u663e\u793a\" class=\"alignnone\" \/><\/p>\n<p><strong>demo<\/strong><br \/>\n\u4e00\u4f8b\u80dc\u5343\u56fe\uff0c\u4e3a\u4e86\u65b9\u4fbf\u5927\u5bb6\u611f\u53d7\u4e0b\u516b\u5927\u5a46\u7684\u5177\u4f53\u884c\u4e3a\uff0c\u6211\u7279\u610f\u7d27\u627f\u4e0a\u9762\u7684\u4f8b\u5b50\uff0c\u5236\u4f5c\u4e86\u4e2a\u53ef\u64cd\u4f5c\u7684\u5b9e\u65f6\u5706\u89d2\u548c\u4ee3\u7801\u7684\u4f8b\u5b50\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" href=\"\/\/www.zhangxinxu.com\/study\/201511\/demo-border-radius.html\" target=\"_blank\">CSS3 border-radius\u5706\u89d2\u5404\u4e2a\u5c5e\u6027\u503c\u4f5c\u7528demo<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_200421.png\" width=\"555\" height=\"798\" alt=\"demo\u5404\u4e2a\u533a\u57df\u4f5c\u7528\u56fe\u89e3\" class=\"alignnone\" \/><\/p>\n<p>OK, \u4e3a\u4e86\u6f14\u793a\u6c34\u5e73\u5782\u76f4\u534a\u5f84\uff0c\u6211\u4eec\u73b0\u5728\u5148\u91cd\u7f6e0\uff0c\u7136\u540e\u8ba9\u6c34\u5e731\u548c\u5782\u76f41\u90fd\u662f300\u50cf\u7d20\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_200648.png\" width=\"481\" height=\"749\" alt=\"\u5de6\u4e0a\u89d2\u5747\u662f300\u50cf\u7d20\u7684\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p>\u5927\u5bb6\u4f1a\u770b\u5230\uff0c\u5de6\u4e0a\u89d2\u51fa\u73b0\u4e86\u5706\u5f27\uff0c\u90a3\u8fd9\u4e2a\u5706\u5f27\u662f\u600e\u4e48\u6765\u7684\u5462\uff1f\u6211\u4eec\u753b\u4e2a\u5708\u5708\u8f85\u52a9\u4e0b~<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_201759.png\" width=\"472\" height=\"497\" alt=\"\u5706\u5f27\u5927\u5c0f\" class=\"alignnone\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/gaoneng.jpg\" width=\"120\" height=\"131\" alt=\"\u524d\u65b9\u9ad8\u80fd\" class=\"alignnone\" \/><\/p>\n<p>\u5927\u5bb6\u53d1\u73b0\u6ca1\uff0c\u539f\u672c\u8bbe\u7f6e\u7684\u662f<code>300<\/code>\u50cf\u7d20*<code>300<\/code>\u50cf\u7d20\uff0c\u7ed3\u679c\u6700\u540e\u663e\u793a\u7684\u5374\u662f<code>200<\/code>\u50cf\u7d20*<code>200<\/code>\u50cf\u7d20\u534a\u5f84\u4e0b\u7684\u5706\u5f27\u6548\u679c\uff0c\u8fd9\u663e\u7136\u4e0d\u7b26\u5408\u8ba4\u77e5\u554a\uff01\uff01<\/p>\n<p>\u5b9e\u9645\u4e0a\u662f\u8fd9\u6837\u7684\uff0cCSS3\u5706\u89d2\u9664\u4e86<strong>\u5927\u503c\u7279\u6027<\/strong>\uff0c\u8fd8\u6709\u4e00\u4e2a<strong>\u7b49\u6bd4\u4f8b\u7279\u6027<\/strong>\uff0c\u5c31\u662f\u6c34\u5e73\u534a\u5f84\u548c\u5782\u76f4\u534a\u5f84\u7684\u6bd4\u4f8b\u662f\u6052\u5b9a\u4e0d\u53d8\u7684\u3002<\/p>\n<p>\u56de\u5230\u4e0a\u9762\u4f8b\u5b50\uff0c\u7531\u4e8e\u6211\u4eec\u7684\u5143\u7d20\u5360\u636e\u5bbd\u5ea6200\u50cf\u7d20\uff0c\u9ad8\u5ea6300\u50cf\u7d20\u3002\u6240\u4ee5\uff0c\u6839\u636e<strong>\u5927\u503c\u7279\u6027<\/strong>\uff0c\u6c34\u5e73\u65b9\u5411\u7684<code>300<\/code>\u50cf\u7d20\u53ea\u80fd\u6309\u7167<code>200<\/code>\u50cf\u7d20\u534a\u5f84\u6e32\u67d3\uff1b\u518d\u6839\u636e<strong>\u7b49\u6bd4\u4f8b\u7279\u6027<\/strong>\uff0c\u867d\u7136\u5782\u76f4\u65b9\u5411\u7406\u8bba\u4e0a\u7684\u6700\u5927\u534a\u5f84\u662f<code>300<\/code>\u50cf\u7d20\uff0c\u4f46\u662f\u53d7\u5236\u4e8e\u5f53\u521d\u8bbe\u5b9a\u7684<code>300px*300px<\/code>\u7684<code>1:1<\/code>\u6bd4\u4f8b\uff0c\u5782\u76f4\u65b9\u5411\u6700\u7ec8\u6e32\u67d3\u7684\u534a\u5f84\u5927\u5c0f\u4e5f\u662f200\u50cf\u7d20\u3002\u4e8e\u662f\uff0c\u6211\u4eec\u6700\u540e\u5f97\u5230\u7684\u53ea\u662f\u4e00\u4e2a<code>200<\/code>\u50cf\u7d20*<code>200<\/code>\u50cf\u7d20\u7684\u5706\u5f27\u3002<\/p>\n<p>\u7b2c\u4e09\u8282\u672b\u5c3e\u6240\u63d0\u5230\u7684\u201c\u53cd\u800c\u56e0\u4e3a\u503c\u8bbe\u5927\u4e86\u201d\u5c31\u662f\u6307\u7684\u8fd9\u4e2a\u3002<\/p>\n<p>\u53ef\u80fd\u6709\u4eba\u4f1a\u7591\u95ee\uff0c\u90a3\u8be5\u5982\u4f55\u8bbe\u7f6e\u624d\u80fd\u5b9e\u73b0\u7b49\u540c\u4e8e<code>border-radius:50%<\/code>\u7684\u6548\u679c\u5462\u3002\u54c8\u54c8\uff0c\u5982\u679c\u4f60\u7406\u89e3\u4e86\u4e0a\u9762\u7684\u5185\u5bb9\uff0c\u5176\u5b9e\u5c31\u5f88\u7b80\u5355\u4e86\uff0c\u6700\u5173\u952e\u7684\u4e00\u70b9\u5c31\u662f\u6bd4\u4f8b\u5173\u7cfb\u3002\u6211\u4eec\u7684\u5143\u7d20\u5360\u636e\u7684\u5c3a\u5bf8\u662f<code>200<\/code>\u50cf\u7d20*<code>300<\/code>\u50cf\u7d20\u3002\u6240\u4ee5\uff0c\u53ea\u8981\u8ba9\u6c34\u5e73\u534a\u5f84\u548c\u5782\u76f4\u534a\u5f84\u4fdd\u6301<code>2:3<\/code>\u7684\u6bd4\u4f8b\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\uff0c\u53ef\u4ee5\u5229\u7528\u201c\u5927\u503c\u7279\u6027\u201d\u8bbe\u4e00\u4e2a\u4f60\u8ba4\u4e3a\u5b89\u5168\u7684\u503c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6bd4\u65b9\u8bf42\u500d\u5c3a\u5bf8<code>border-radius: 400px\/600px<\/code>, \u5982\u4e0b\u4ee3\u7801\u548c\u6548\u679c\uff1a<\/p>\n<style>.radius-test4 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 400px\/600px; }<\/style>\n<div class=\"zxx_code\">\n<pre>.radius-test4 { width: 100px; height: 200px; border: 50px solid #cd0000; border-radius: 400px\/600px; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test4>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test4\"><\/div>\n<p>\u662f\u4e0d\u662f\u641e\u660e\u767d\u539f\u7406\u4e4b\u540e\uff0c\u4e4b\u524d\u6655\u5934\u8f6c\u5411\u7684\u8868\u73b0\u662f\u4e0d\u662f\u5206\u5206\u949f\u5c31\u7406\u89e3\u4e86\u54c8\uff01<\/p>\n<h3>\u56db\u3001border-radius\u4e0e\u56fe\u5f62\u6784\u5efa<\/h3>\n<p><code>border-radius<\/code>\u652f\u6301\u7684\u53ef\u53d8\u503c\u8db3\u6709\u516b\u4e2a\uff08\u5728\u672c\u6587\u620f\u79f0\u4e3a\u516b\u5927\u5a46\uff0c\u7b80\u79f0\u516b\u5a46\uff09\uff0c\u57fa\u672c\u4e0a\uff0c\u6bcf\u4e00\u4e2a\u503c\u7684\u53d8\u5316\uff0c\u90fd\u4f1a\u5448\u73b0\u4e0d\u540c\u7684\u56fe\u5f62\uff0c\u4f8b\u5982\uff0c\u4e0b\u9762\u8fd9\u6837\uff0c\u6211\u4e1c\u62d6\u62d6\uff0c\u897f\u62d6\u62d6\uff0c\u62d6\u51fa\u4e86\u4e2a\u82f1\u6587\u5b57\u6bcdD\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_205807.png\" width=\"513\" height=\"757\" alt=\"\u5706\u89d2\u751f\u6210\u7684\u5b57\u6bcdD\" class=\"alignnone\" \/><\/p>\n<p>\u6216\u8005\u6211\u4eec\u53ef\u4ee5\u53ea\u7559\u4e00\u4e2a\u65b9\u5411\u62162\u4fa7\u7684\u8fb9\u6846\uff0c\u53ef\u4ee5\u62c9\u51fa\u4e00\u4e9b\u60ca\u559c\u7684\u6548\u679c\uff0c\u5982\u4e0bgif\u622a\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/202003\/border-radius.gif\" width=\"465\" height=\"614\" alt=\"\u4e00\u4fa7\u8fb9\u6846\u7684\u5c0f\u5c3e\u5df4\u6548\u679cgif\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u8bf8\u5982\u5f88\u591a\u7684\uff0c\u5c31\u770b\u4f60\u7684\u8111\u6d1e\u548c\u6280\u672f\u4e86\u3002<\/p>\n<p>\u672c\u8eabCSS\u7684<code>border<\/code>\u5c5e\u6027\u5c31\u53ef\u4ee5\u6784\u5efa\u4e09\u89d2\uff0c\u68af\u5f62\u7b49\u7b49\uff0c\u73b0\u5728\uff0c\u518d\u914d\u5408\u591a\u53d8\u7684<code>border-radius<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u53d1\u6325\u7684\u7a7a\u95f4\u5c31\u66f4\u5927\u4e86\u3002\u4f46\u662f\uff0c\u8981\u60f3\u7528\u5f97\u5f97\u5fc3\u5e94\u624b\uff0c\u8fd8\u662f\u9700\u8981\u6df1\u5165\u7406\u89e3<code>border-radius<\/code>\u7684\u5404\u4e2a\u8868\u73b0\u3002<\/p>\n<p><a href=\"https:\/\/a.singlediv.com\/\" target=\"_blank\">a.singlediv.com<\/a>\u4e0a\u5c31\u6709\u4e9b\u56fe\u6807\u5c31\u662f\u5229\u7528\u4e86<code>border-radius<\/code>\u5b9e\u73b0\u7684\uff0c\u5927\u5bb6\u6709\u5174\u8da3\u53ef\u4ee5\u7785\u7785\uff0c\u770b\u770b\u4eba\u5bb6\u600e\u4e48\u5de7\u5999\u4f7f\u7528<code>border-radius<\/code>\u7684\uff0c\u76ee\u7684\u5728\u4e8e\u5b66\u4e60\u7406\u89e3<code>border-radius<\/code>\uff0c\u5012\u4e0d\u662f\u6548\u679c\u672c\u8eab\u3002\u77e5\u5176\u6839\u672c\u81ea\u7136\u4e0a\u5c42\u4fe1\u624b\u62c8\u6765\u3002<\/p>\n<h4>border-radius\u4e0e\u4e0d\u89c4\u5219\u5934\u50cf\u6848\u4f8b<\/h4>\n<p>\u4e4b\u524d\u5728\u201c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=5963\" rel=\"noopener\" target=\"_blank\">\u8749\u539f\u5219<\/a>\u201d\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u6709\u4ecb\u7ecd\u8fc7<code>border-radius<\/code>\u5b9e\u73b0\u4e0d\u89c4\u5219\u5934\u50cf\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/201702\/cicada-principle-border-radius.html\" rel=\"noopener\" target=\"_blank\">\u968f\u673a\u4e0d\u89c4\u5219\u5706\u89d2\u5934\u50cfdemo<\/a><\/p>\n<p>\u6548\u679c\u5982\u4e0b\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-10_232423.png\" width=\"300\" height=\"226\" alt=\"demo\u968f\u673a\u5706\u89d2\u622a\u56fe\u793a\u610f\" class=\"alignnone\"><\/p>\n<p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u5185\u5916\u89d2\u540c\u65f6\u8bbe\u7f6e\u4e0d\u540c\u7684\u767e\u5206\u6bd4\u5706\u89d2\uff0c\u5b9e\u73b0\u66f4\u52a0\u4e0d\u89c4\u5219\u7684\u5706\u89d2\u6548\u679c\uff0c\u4e0b\u9762\u662f\u4e00\u4e9b\u6848\u4f8b\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201812\/border-radius-7.jpg\" width=\"600\" height=\"250\" alt=\"\u66f4\u591a\u4e0d\u89c4\u5219\u5706\u89d2\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4e0b\u9762\u5c55\u793a\u4e00\u4e2a\u5b9e\u9645\u6848\u4f8b\uff0c\u914d\u5408CSS3\u52a8\u753b\uff0c\u5c55\u793a\u66f4\u591a\u4e0d\u89c4\u5219\u5706\u89d2\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<p><iframe loading=\"lazy\" width=\"300\" height=\"250\" src=\"\/study\/201812\/border-raduis-avatar.html\" frameborder=\"0\"><\/iframe><\/p>\n<p>\u76f8\u5173\u4ee3\u7801\u5982\u4e0b\uff0cCSS\uff1a<\/p>\n<pre>.spin-container {\r\n  width: 200px; height: 200px;\r\n  animation: spin 12s linear infinite;\r\n  margin: auto;\r\n}\r\n.shape {\r\n  height: 100%;\r\n  border-radius: 60% 40% 30% 70% \/ 60% 30% 70% 40%;\r\n  animation: morph 8s ease-in-out infinite both alternate;\r\n  overflow: hidden;\r\n}\r\n.avatar {\r\n  height: 120%; width: 120%;\r\n  margin: -10% 0 0 -10%;\r\n  background: url(.\/avatar.jpg) no-repeat center;\r\n  background-size: 100%;\r\n  animation: spin 12s linear infinite reverse;\r\n}\r\n@keyframes morph {\r\n  0% {border-radius: 40% 60% 60% 40% \/ 60% 30% 70% 40%;} \r\n  100% {border-radius: 40% 60%;} \r\n}\r\n@keyframes spin {\r\n  to {\r\n    transform: rotate(1turn);\r\n  }\r\n}<\/pre>\n<p>HTML\u7ed3\u6784\u4e3a\uff1a<\/p>\n<pre>&lt;div class=\"spin-container\"&gt;\r\n  &lt;div class=\"shape\"&gt;\r\n    &lt;div class=\"avatar\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<h3>\u516d\u3001\u8865\u5145\u5185\u5bb9<\/h3>\n<p><strong>\u63d2\u4e00\u4e0b<\/strong><br \/>\n\u5bf9\u4e86\uff0c\u5199\u6458\u8981\u662f\u7a81\u7136\u60f3\u8d77\u6765\u3002\u6709\u65f6\u5019\u6211\u4eec\u60f3\u4f7f\u7528\u900f\u660e\u8fb9\u6846\u4f18\u96c5\u589e\u52a0\u5143\u7d20\u7684\u70b9\u51fb\u533a\u57df\uff0c\u6b64\u65f6\u7684\u5706\u89d2\u5927\u5c0f\u503c\u9700\u8981\u628a\u900f\u660e\u8fb9\u6846\u7684\u5bbd\u5ea6\u4e5f\u8ba1\u7b97\u5728\u5185\u3002\u4f8b\u5982\uff0c\u5e0c\u671b\u5706\u89d2<code>2<\/code>\u50cf\u7d20\uff0c\u7ed3\u679c\u5916\u9762\u6269\u5c55\u4e86<code>2<\/code>\u50cf\u7d20\u7684\u900f\u660e\u8fb9\u6846\uff1b\u6b64\u65f6\uff0c\u5b9e\u9645\u8bbe\u7f6e\u7684<code>border-radius<\/code>\u503c\u5e94\u8be5\u662f<code>4px<\/code>. <\/p>\n<p><strong>\u63d2\u4e00\u4e0b \u00d7 2<\/strong><br \/>\n\u54e6\uff0c\u8fd8\u6709\u2026\u2026\u59b9\u7684\uff0c\u5fd8\u8bb0\u8bf4\u4e86\uff0c\u672c\u6765\u662f\u4e2a\u72ec\u7acb\u6bb5\u843d\uff0c\u7b97\u4e86\uff0c\u7b80\u5355\u8bf4\u4e0b\u5427\u3002\u5c31\u662f\u6211\u4eec\u53ef\u4ee5\u5355\u72ec\u6307\u5b9a<code>border-radius<\/code>\u67d0\u4e2a\u89d2\u843d\u7684\u5706\u89d2\u5927\u5c0f\uff0c\u5982<code>border-top-left-radius: 40px<\/code>\u8fd9\u4e2a\u4e0d\u5c11\u540c\u5b66\u90fd\u77e5\u9053\u3002\u4f46\u662f\uff0c\u5927\u5bb6\u4e0d\u4e00\u5b9a\u77e5\u9053\uff1a<\/p>\n<ol>\n<li>\u652f\u6301\u6700\u591a\u4e24\u4e2a\u503c\uff0c\u5fc5\u987b\u4f7f\u7528\u7a7a\u683c\u5206\u9694\u3002\u5206\u522b\u8868\u793a\u6c34\u5e73\u534a\u5f84\u548c\u5782\u76f4\u534a\u5f84\u3002\u800c<code>border-radius<\/code>\u90a3\u79cd\u659c\u6760<code>\/<\/code>\u5206\u9694\u7684\u5199\u6cd5\u8fd9\u91cc\u662f\u4e0d\u652f\u6301\u7684\uff0c\u53ea\u80fd\u662f\u7a7a\u683c\u3002<\/li>\n<li>\u4e2d\u95f4\u4e24\u4e2a\u65b9\u4f4d\u5173\u952e\u5b57\uff0c\u5982<code>top<\/code>\/<code>left<\/code>\u7684\u524d\u540e\u987a\u5e8f\u4e0d\u80fd\u6539\u53d8\uff0c\u5426\u5219\u4f1a\u88ab\u8ba4\u4e3a\u662f\u4e0d\u5408\u6cd5\uff08\u53ef\u53c2\u89c1\u4e0b\u9762\u7684\u6d4b\u8bd5\uff09\u3002<code>top\/bottom<\/code>\u8868\u793a\u5782\u76f4\u65b9\u5411\u7684\u5728\u524d\u9762\uff0c <code>left\/right<\/code>\u8868\u793a\u6c34\u5e73\u65b9\u5411\u7684\u5728\u53f3\u8fb9\u3002\u5168\u90e8\u5199\u6cd5\u793a\u610f\uff1a\n<div class=\"zxx_code\">\n<pre>.radius {\r\n  border-top-left-radius: 200px 100px;\r\n  border-top-right-radius: 200px 100px;\r\n  border-bottom-left-radius: 200px 100px;\r\n  border-bottom-right-radius: 200px 100px;\r\n}<\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<p>\u4e0a\u97622\u70b9\u4e00\u7efc\u5408\uff0c\u5c31\u53ef\u4ee5\u5f97\u5230\u5982\u4e0b\u7684\u8bb0\u5fc6\u516c\u5f0f\uff1a<strong>border-\u5782\u76f4-\u6c34\u5e73-radius: \u6c34\u5e73 \u5782\u76f4<\/strong><\/p>\n<p>\u6ca1\u9519\uff01\u524d\u9762\u7684\u65b9\u4f4d\u5173\u952e\u5b57\u548c\u540e\u9762\u7684\u534a\u5f84\u65b9\u4f4d\u4e0d\u5339\u914d\uff01\u4e0d\u5339\u914d\uff01\u4e0d\u5339\u914d\uff01\u6b63\u597d\u53cd\u7684\uff01<\/p>\n<p>\u53e6\u5916\uff0c\u5076\u4eec\u90fd\u4e0d\u662f\u5929\u624d\uff0c\u65f6\u95f4\u4e45\u4e86\u4f1a\u8bb0\u4e0d\u5f97\u5230\u5e95\u662f\u5782\u76f4\u5728\u524d\uff0c\u8fd8\u662f\u6c34\u5e73\u5728\u524d\u3002\u544a\u8bc9\u5927\u5bb6\u4e00\u4e2a\u4e00\u5b9a\u4e0d\u4f1a\u8bb0\u9519\u7684\u65b9\u6cd5\uff0c\u7f57\u6c38\u6d69\u4e0d\u662f\u6709\u4e2a\u9524\u5b50\u624b\u673a\u5417\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201511\/2015-11-01_220333.jpg\" width=\"240\" height=\"332\" alt=\"\u9524\u5b50\u624b\u673a\" class=\"alignnone\" \/><\/p>\n<p>\u5782\u76f4\u5728\u524d \u2192 \u9524\u5b50\u5728\u524d\u3002<\/p>\n<p>OK\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u6d4b\u8bd5\u4e0b\u524d\u9762\u63d0\u5230\u7684\u4e0d\u80fd\u4fee\u6539\u65b9\u4f4d\u5173\u952e\u5b57\u7684\u987a\u5e8f\uff0c\u4e5f\u5c31\u662f\u4e0d\u80fd<del>border-left-top-radius<\/del>\uff1a<\/p>\n<style>.radius-test5 { width: 100px; height: 100px; border: 50px solid #cd0000; border-top-left-radius: 200px 100px; }.radius-test6 { width: 100px; height: 100px; border: 50px solid #cd0000; border-left-top-radius: 200px 100px; }<\/style>\n<div class=\"zxx_code\">\n<pre>.radius-test5 { width: 100px; height: 100px; border: 50px solid #cd0000; border-top-left-radius: 200px 100px; }\r\n.radius-test6 { width: 100px; height: 100px; border: 50px solid #cd0000; <del>border-left-top-radius: 200px 100px;<\/del> }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test5>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test5\"><\/div>\n<div class=\"zxx_code\">\n<pre>&lt;div class=\"radius-test6>&lt;\/div><\/pre>\n<\/div>\n<div class=\"radius-test6\"><\/div>\n<p>\u663e\u7136\uff0c\u4e0a\u9762\u8fd8\u662f\u65b9\u65b9\u6b63\u6b63\uff0c\u76f4\u63a5\u55dd\u5c41\u4e86\u3002\u6240\u4ee5\uff0c\u8bb0\u4f4f\uff0c\u300c\u9524\u5b50\u5728\u524d\u300d\uff01<\/p>\n<h3>\u4e03\u3001\u79cb\u6708\u4f55\u65f6\u4e86<\/h3>\n<p>\u8fd9\u4e24\u4e2a\u6708\u4ea7\u51fa\u6709\u70b9\u5c11\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f\u5927\u5bb6\u90fd\u5b66\u8fc7\u300c\u4ea7\u51fa\u5b88\u6052\u5b9a\u5f8b\u300d\uff0c\u6587\u7ae0\u4ea7\u5c11\u4e86\uff0c\u662f\u56e0\u4e3a\u4ea7\u4e86\u5176\u4ed6\u5f88\u5c4c\u7684\u4e1c\u897f\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201510\/dage-diao.jpg\" width=\"240\" height=\"300\" alt=\"\u5927\u54e5-\u5c4c\" class=\"mt10\" \/><\/p>\n<p>\u65e9\u5c31\u77e5\u9053\u5973\u670b\u53cb\u662f\u6280\u672f\u5b66\u4e60\u7684\u7b2c\u4e00\u963b\u788d\u529b\uff0c\u73b0\u5728\u53d1\u73b0\u5c0f\u670b\u53cb\u624d\u662f\u6280\u672f\u5b66\u4e60\u7684Boss\u7ea7\u963b\u788d\u529b\u3002<\/p>\n<p>\u5bf9\u4e86\uff0c\u4eca\u5929\u662f\u4e07\u5723\u8282\uff0c\u6211\u6709\u5fc5\u8981\u626e\u9b3c\u8ba9\u5927\u5bb6\u5f00\u5fc3\u4e00\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201510\/wanshenggui.jpg\" width=\"240\" height=\"241\" alt=\"\u4e07\u5723\u8282-\u626e\u9b3c\" class=\"mt10\" \/><\/p>\n<p>\u544a\u8bc9\u5927\u5bb6\u4e00\u4e2a\u79d8\u5bc6\uff0c\u6211\u6bcf\u5929\u65e9\u4e0a\u5c31\u662f\u8fd9\u4e48\u5e05\u9192\u7684\u3002<\/p>\n<p>\u4e0d\u8fc7\u5728\u6211\u4eec\u56fd\u5bb6\uff0c\u4e07\u5723\u8282\u663e\u5f97\u51b7\u51b7\u6e05\u6e05\u51c4\u51c4\u60e8\u60e8\u621a\u621a\uff0c\u4f46\u662f\uff0c\u7b2c11\u533a\u7684\u4eba\u6c11\u5c31\u70ed\u95f9\u591a\u4e86\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201510\/11qu-wanshengjie.jpg\" width=\"240\" height=\"321\" alt=\"11\u533a\u7684\u4e07\u5723\u8282\" class=\"mt10\" \/><\/p>\n<p>\u4e0d\u77e5\u9053\u5927\u5bb6\u7684\u4e07\u5723\u8282\u662f\u600e\u4e48\u8fc7\u7684\uff0c\u5c24\u5176\u4eca\u5e74\u6070\u9022\u5468\u672b\u3002\u60f3\u60f3\u6211\u5e74\u8f7b\u7684\u65f6\u5019\uff0c\u8fd9\u6837\u7684\u8282\u65e5\u4e0d\u662f\u52a0\u73ed\uff0c\u5c31\u662f\u5b85\u5728\u5bb6\u91cc\u3002\u5982\u679c\u4f60\u4e5f\u662f\u8fd9\u6837\uff0c\u522b\u6851\u5fc3\uff0c\u6ca1\u4eba\u7ed9\u4f60\u626e\u9b3c\uff0c\u54b1\u4eec\u53ef\u4ee5\u81ea\u5df1\u626e\u9b3c\u5f00\u5fc3\u4e0b\u561b\u3002\u6bd4\u5982\u8bf4\uff1a\u5355\u8eab\u9b3c\uff0c\u7a77\u9b3c\u7b49\u7b49\u3002\u54df\uff0c\u4f60\u7a81\u7136\u53d1\u73b0\u81ea\u5df1\u2026\u2026\u6839\u672c\u5c31\u4e0d\u7528\u626e\uff0c\u76f4\u63a5\u672c\u8272\u51fa\u6f14\u5c31\u53ef\u4ee5\u4e86\uff01\u90a3\u2026\u2026\u771f\u662f\u592a\u606d\u559c\u4f60\u4e86\uff0c\u539f\u6765\u4f60\u6bcf\u5929\u90fd\u5728\u8fc7\u4e07\u5723\u8282\uff01<img decoding=\"async\" src=\"\/\/mat1.gtimg.com\/www\/mb\/images\/face\/99.gif\" align=\"absmiddle\" height=\"24\"> \u90a3\u66f4\u5e94\u8be5\u5f00\u5fc3\u5566\uff01 <\/p>\n<p><img decoding=\"async\" src=\"\/\/mat1.gtimg.com\/www\/mb\/images\/face\/28.gif\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=4992\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=4992<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u7406\u89e3CSS3 border-radius\u7684\u4e00\u4e9b\u7279\u6027\u8868\u73b0\u3002\u5e73\u65f6\u4f7f\u7528\u7684\u90a3\u70b9\u4e1c\u897f\u53ea\u662f\u6d6e\u4e8e\u8868\u9762\u7684\uff0c\u5b9e\u9645\u4e0a\uff0cborder-radius\u652f\u6301\u7684\u5c5e\u6027\u503c\u5462\uff0c\u8fd8\u662f\u6709\u70b9\u6599\u7684\uff0c\u4e5f\u6709\u5f88\u591a\u9700\u8981\u6ce8\u610f\u7684tips. \u672c\u6587\u5c31\u7b97\u662fborder-radius\u8fdb\u9636\u5b66\u4e60\uff0c\u8fd8\u662f\u4e00\u5982\u65e2\u5f80\u7684\uff0c\u6709\u4e30\u5bcc\u7684\u622a\u56fe\uff0c\u8868\u60c5\u56fe\uff0c\u7410\u788e\u56fe\uff0c\u63d2\u79d1\u6253\u8be8\u56fe\uff1b\u6709\u4e30\u5bcc\u7684\u6e90\u4ee3\u7801\u5c55\u793a\uff0c\u5bf9\u4e86\uff0c\u8fd8\u6709\u7eaf\u624b\u52a8\u6253\u7b97\u7684\u4fbf\u4e8e\u5b66\u4e60\u7684demo\u3002\u5e0c\u671b\u672c\u6587\u7684\u5185\u5bb9\u80fd\u591f\u5bf9\u60a8\u7684\u5b66\u4e60\u6709\u6240\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":[3],"tags":[339,177,1271,889,54],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4992"}],"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=4992"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4992\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}