{"id":341020,"date":"2021-02-14T09:03:11","date_gmt":"2021-02-14T01:03:11","guid":{"rendered":"http:\/\/4563.org\/?p=341020"},"modified":"2021-02-14T09:03:11","modified_gmt":"2021-02-14T01:03:11","slug":"css-%e9%97%aa%e7%83%81%e7%89%b9%e6%95%88%e6%b1%82%e5%8a%a9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=341020","title":{"rendered":"css \u95ea\u70c1\u7279\u6548\u6c42\u52a9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  css \u95ea\u70c1\u7279\u6548\u6c42\u52a9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>vue \u4e2d\u60f3\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u95ea\u70c1\u52a8\u753b\uff0c\u5199\u4e86\u5982\u4e0b\u4ee3\u7801\u4f46\u662f\u65e0\u6cd5\u5b9e\u73b0\u6548\u679c\uff0c\u8bf7\u95ee\u53ef\u80fd\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u7684\uff1f<\/p>\n<p>\u5927\u6982\u5c31\u662f\u4e00\u884c\u6587\u5b57\u60f3\u8ba9\u4ed6\u6bcf\u79d2\u949f\u95ea\u70c1\u4e00\u4e0b\uff0c\u7136\u540e window \u4e0a\u7ed1\u4e86\u4e00\u4e2a\u5faa\u73af\u51fd\u6570\u3002\u4f46\u662f\u6700\u540e\u663e\u793a\u51fa\u6765\u6548\u679c\uff0c\u5b83\u786e\u5b9e\u6bcf\u79d2\u95f4\u9694\u4f1a\u95ea\u70c1\uff0c\u4f46\u6211\u60f3\u8ba9\u4ed6\u6709\u9010\u6e10\u53d8\u6210\u900f\u660e\u8fd9\u79cd\u52a8\u753b\u6548\u679c\uff0c\u5b9e\u9645\u6ca1\u6709\u663e\u793a\u51fa\u6765\uff0c\u53ef\u80fd\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u7684\uff1f<\/p>\n<pre><code>&lt;template&gt;   &lt;div class=\"flashing\" refs=\"flashing\"&gt;     I'm the flashing text   &lt;\/div&gt; &lt;\/template&gt;  export default {   mounted(){     window.setInterval(()=&gt;{       if (this.$refs.flashing.style.opacity == \"0\"){         this.$refs.flashing.style.opacity = \"1\"       } else {         this.$refs.flashing.style.opacity = \"0\"       }     },1000)   } }  &lt;style scope&gt; .flashing{   transition:all 0.5s linear; } &lt;\/style&gt; <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5267409\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wunonglin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e3a\u6bdb\u4e0d\u76f4\u63a5\u7528 css \u7684 animation \uff1f<\/p>\n<p>&#8220;`css<br \/>. flashing{<br \/> animation: .3s linear 1s infinite op;<br \/>}<\/p>\n<p>@keyframes op {<br \/> 0% { opacity: 1; }<br \/> 50% { opacity: 0; }<br \/> 100% { opacity: 0; }<br \/>}<\/p>\n<p>&#8220;`                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5267410\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : temporary <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5947\u5947\u602a\u602a\uff0c\u7528 animation \u65b9\u4fbf\u70b9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5267411\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wunonglin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4fee\u6b63\u4e0a\u9762<br \/>@keyframes op {<br \/> 0% { opacity: 1; }<br \/> 50% { opacity: 0; }<br \/> 100% { opacity: 1; }<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5267412\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cyrbuzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             transition \u662f\u4e00\u79cd\u4ece`\u6709`\u5230`\u6709`\u7684\u52a8\u753b\u3002\u6240\u4ee5\u4f60\u9700\u8981\u7ed9.flashing \u4e00\u4e2a\u521d\u59cb\u503c .flashing { opacity: 0 }\u3002<\/p>\n<p>\u53e6\u5916\u76f4\u63a5\u5199\u4e0a\u7684\u52a8\u753b\u6bd4\u7528 JS \u66f4\u7b80\u6d01\u6e05\u6670\u6613\u61c2\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>css \u95ea\u70c1\u7279\u6548\u6c42\u52a9 \u8cc7\u6df1\u5927\u4f6c :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/341020"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341020"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/341020\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341020"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}