{"id":2256,"date":"2017-10-30T15:35:08","date_gmt":"2017-10-30T07:35:08","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2256"},"modified":"2017-10-30T15:35:08","modified_gmt":"2017-10-30T07:35:08","slug":"css3-linear-gradient%e7%ba%bf%e6%80%a7%e6%b8%90%e5%8f%98%e7%94%9f%e6%88%90%e5%b8%a6%e7%ba%bf%e6%a1%86%e7%9a%84%e4%b8%89%e8%a7%92%e4%bb%bf%e5%be%ae%e4%bf%a1%e5%af%b9%e8%af%9d%e6%a1%86","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2256","title":{"rendered":"CSS3 linear-gradient\u7ebf\u6027\u6e10\u53d8\u751f\u6210\u5e26\u7ebf\u6846\u7684\u4e09\u89d2(\u4eff\u5fae\u4fe1\u5bf9\u8bdd\u6846)"},"content":{"rendered":"<p>\n\t\u5fae\u4fe1\u548cQQ\u804a\u5929\u6846\u5185\uff0c\u6536\u5230\u548c\u53d1\u9001\u7684\u6d88\u606f\u90fd\u4f1a\u5728\u4e00\u4e2a\u5e26\u6709\u5c0f\u7bad\u5934\u7684\u6846\u6846\u5185\u663e\u793a\u3002\u8fd9\u4e2a\u6548\u679c\u770b\u8d77\u6765\u5f88\u4e0d\u9519\uff0c\u5230\u5e95\u662f\u600e\u4e48\u5b9e\u73b0\u7684\u5462\uff1f\u672c\u6587\u5c06\u5e26\u4f60\u5b9e\u73b0\u4eff\u5fae\u4fe1\u804a\u5929\u6846\u548c\u4effQQ\u6d88\u606f\u804a\u5929\u6846\u3002\n<\/p>\n<p>\n\t\u505a\u5230\u4e09\u89d2\u56fe\u5f62\u7684\u751f\u6210\uff0c\u6700\u7ecf\u5178\u7684\u5e94\u8be5\u662f\u4f7f\u7528<a href=\"https:\/\/www.xttblog.com\/?tag=css3\" name=\"css\" target=\"_blank\" title=\"css\">CSS<\/a> border\u5c5e\u6027\u4e86\uff0c\u5982\u679c\u662f\u7eaf\u8272\u4e09\u89d2\uff0c\u4f7f\u7528<a href=\"https:\/\/www.xttblog.com\/?tag=css3\" name=\"css3\" target=\"_blank\" title=\"css3\">CSS3<\/a> clip-path\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u65b9\u6cd5\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\u6709\u65f6\u5019\u6211\u4eec\u7684\u4e09\u89d2\u662f\u5e26\u7ebf\u6846\u7684\uff0c\u7c7b\u4f3c\u4e0b\u56fe\u8fd9\u79cd\u6548\u679c\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"CSS3 clip-path\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201710\/2017-10-27_010026.png\" \/>\n<\/p>\n<p>\n\t\u5982\u679c\u4e0d\u8003\u8651\u517c\u5bb9\u6027\uff0c\u6bd4\u8f83\u597d\u7684\u505a\u6cd5\u662fborder\u5c5e\u6027\u751f\u6210\u4e24\u4fa7\u7ebf\u6846\uff0c\u7136\u540e<a href=\"https:\/\/www.xttblog.com\/?tag=css3\" name=\"css3\" target=\"_blank\" title=\"css3\">CSS3<\/a> transform\u65cb\u8f6c\uff0c\u4f46\u4e5f\u6709\u5c40\u9650\uff0c\u90a3\u5c31\u662f\u5982\u679c\u548c\u4e09\u89d2\u5bf9\u63a5\u7684\u533a\u57df\u5b83\u4e0d\u662f\u7eaf\u8272\u800c\u662f\u6e10\u53d8\u80cc\u666f\uff0c\u5219\u5c31\u6709\u95ee\u9898\u4e86\uff0c\u56e0\u4e3a\u6b64\u65f6\u7684\u4e09\u89d2\u5b9e\u9645\u4e0a\u662f\u4e2a\u65cb\u8f6c45\u5ea6\u7684\u6b63\u65b9\u5f62\u56fe\u5f62\u5757\u3002\n<\/p>\n<p>\n\t\u6b64\u65f6\u4f7f\u7528\u6e10\u53d8\u56fe\u5f62\u751f\u6210\u65b9\u6cd5\u5c31\u6ca1\u6709\u4efb\u4f55\u538b\u529b\u4e86\uff0c\u56e0\u4e3a\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u771f\u6b63\u7684\u4e09\u89d2\uff08135\u5ea6\u659c\u5411\u6e10\u53d8\u5230\u5bf9\u89d2\u7ebf\u4f4d\u7f6e\uff09\uff0c\u793a\u610f\u56fe\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u659c\u5411\u6e10\u53d8\u5230\u5bf9\u89d2\u7ebf\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201710\/30\/1509348500_500758.png\" style=\"width: 381px;height: 325px\" \/>\n<\/p>\n<p>\n\t\u76f8\u5173<a href=\"https:\/\/www.xttblog.com\/?tag=css3\" name=\"css\" target=\"_blank\" title=\"css\">CSS<\/a>\u4ee3\u7801\u5982\u4e0b\uff08\u8fd9\u91cc\u7ebf\u6846\u4e5f\u662f\u6e10\u53d8\u5b9e\u73b0\u7684\uff09\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.tri {\r\n    width: 6px; height: 6px;\r\n    background: linear-gradient(to top, #ddd, #ddd) no-repeat, linear-gradient(to right, #ddd, #ddd) no-repeat, linear-gradient(135deg, #fff, #fff 6px, hsla(0,0%,100%,0) 6px) no-repeat;\r\n    background-size: 6px 1px, 1px 6px, 6px 6px;\r\n    transform: rotate(-45deg);\r\n}<\/pre>\n<p>\n\t\u4e0b\u9762\u662f\u5b8c\u6574\u7684demo\u5b9e\u73b0\u4ee3\u7801\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=css3\" name=\"css\" target=\"_blank\" title=\"css\">CSS<\/a>\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.avatar {\r\n    width: 54px; height: 54px;\r\n    border-radius: 50%;\r\n    object-fit: cover;\r\n    float: left;\r\n}\r\n.content {\r\n    margin-left: 70px;\r\n}\r\n.talk {\r\n    display: inline-block;\r\n    max-width: 80%;\r\n    border: 1px solid #ddd;\r\n    border-radius: 3px;\r\n    padding: 6px 10px;\r\n    font-size: 14px;\r\n    background-color: #fff;\r\n    position: relative;\r\n}\r\n.talk::before {\r\n    content: &#039;&#039;;\r\n    position: absolute;\r\n    width: 6px; height: 6px;\r\n    background: linear-gradient(to top, #ddd, #ddd) no-repeat, linear-gradient(to right, #ddd, #ddd) no-repeat, linear-gradient(135deg, #fff, #fff 6px, hsla(0,0%,100%,0) 6px) no-repeat;\r\n    background-size: 6px 1px, 1px 6px, 6px 6px;\r\n    transform: rotate(-45deg);\r\n    left: -4px; top: 13px;\r\n}<\/pre>\n<p>\n\thtml\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;img src=&quot;mm1.jpg&quot; class=&quot;avatar&quot;&gt;\r\n&lt;div class=&quot;content&quot;&gt;\r\n    &lt;p class=&quot;talk&quot;&gt;\u8fd9\u662f\u5bf9\u8bdd\u5185\u5bb9&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2256\">CSS3 linear-gradient\u7ebf\u6027\u6e10\u53d8\u751f\u6210\u5e26\u7ebf\u6846\u7684\u4e09\u89d2(\u4eff\u5fae\u4fe1\u5bf9\u8bdd\u6846)<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u548cQQ\u804a\u5929\u6846\u5185\uff0c\u6536\u5230\u548c\u53d1\u9001\u7684\u6d88\u606f\u90fd\u4f1a\u5728\u4e00\u4e2a\u5e26\u6709\u5c0f\u7bad\u5934\u7684\u6846\u6846\u5185\u663e\u793a\u3002\u8fd9\u4e2a\u6548\u679c\u770b\u8d77\u6765\u5f88\u4e0d\u9519\uff0c\u5230\u5e95\u662f\u600e\u4e48\u5b9e\u73b0\u7684\u5462 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[814,119,1106,48],"class_list":["post-2256","post","type-post","status-publish","format-standard","hentry","category-html5","tag-css3","tag-html5","tag-javascript","tag-web"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2256"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2256\/revisions"}],"predecessor-version":[{"id":2257,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2256\/revisions\/2257"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}