{"id":2091,"date":"2011-12-07T22:38:04","date_gmt":"2011-12-07T14:38:04","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=2091"},"modified":"2018-01-02T00:48:00","modified_gmt":"2018-01-01T16:48:00","slug":"css3-pointer-events-none-javascript","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2011\/12\/css3-pointer-events-none-javascript\/","title":{"rendered":"CSS3 pointer-events:none\u5e94\u7528\u4e3e\u4f8b\u53ca\u6269\u5c55"},"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=2091\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=2091<\/a><\/p>\n<h3>\u4e00\u3001pointer-events:none\u662f\uff1f<\/h3>\n<p><code>pointer-events<\/code>\u662fCSS3\u4e2d\u53c8\u4e00\u5189\u5189\u7684\u5c5e\u6027\uff0c\u5176\u652f\u6301\u7684\u503c\u725b\u6bdb\u822c\u591a\uff0c\u4e0d\u8fc7\u5927\u591a\u90fd\u4e0eSVG\u76f8\u5173\uff0c\u6211\u4eec\u53ef\u4ee5\u4e0d\u7528\u7406\u4f1a\u3002\u5f53\u4e0b\uff0c\u5bf9\u4e8e\u5076\u4eec\u6765\u8bb2\uff0c\u4e0eSVG\u5212\u5f00\u754c\u7ebf\u503c\u5f97\u4e00\u63d0\u7684\u5c31\u662f[none|auto]\u4e24\u4e2a\u5c5e\u6027\u503c\u4e86\u3002\u5176\u4e2d&#8221;auto&#8221;\u7684\u611f\u89c9\u4e0ewidth\u5c5e\u6027\u7684&#8221;auto&#8221;\u7c7b\u4f3c\uff0c\u4e00\u822c\u5728\u4e00\u4e9b\u7279\u6b8a\u573a\u5408\u9732\u4e00\u624b\uff0c\u5e73\u65f6\u95fa\u95e8\u4e0d\u51fa\uff0c\u6ca1\u4ec0\u4e48\u8bf4\u5934\u3002\u56e0\u6b64\uff0c\u4e00\u8f6e\u7b5b\u9009\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u7559\u610f\u7684\u53ea\u662f<code>pointer-events:none<\/code>\u800c\u5df2\u3002<\/p>\n<p><code>pointer-events:none<\/code>\u662f\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f\uff0c\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5176\u7cbe\u6e5b\u7684\u8868\u73b0\u4f1a\u8ba9\u4eba\u4e24\u773c\u53d1\u5149\u3002<\/p>\n<p><code>pointer-events:none<\/code>\u987e\u540d\u601d\u610f\uff0c\u5c31\u662f<strong>\u9f20\u6807\u4e8b\u4ef6\u62dc\u62dc<\/strong>\u7684\u610f\u601d\u3002\u5143\u7d20\u5e94\u7528\u4e86\u8be5CSS\u5c5e\u6027\uff0c\u94fe\u63a5\u554a\uff0c\u70b9\u51fb\u554a\u4ec0\u4e48\u7684\u90fd\u53d8\u6210\u4e86\u201c\u6d6e\u4e91\u724c\u9171\u6cb9\u201d\u3002<\/p>\n<p>\u5520\u53e8\u5230\u5634\u5df4\u6253\u7ed3\u8fd8\u4e0d\u5982\u4e00\u4e2a\u660e\u5feb\u7684\u4f8b\u5b50\u7ed9\u529b\uff0c\u4e0b\u9762\u662f\u4f8b\u5b50\u5927\u653e\u9001\u65f6\u95f4\u3002<\/p>\n<h3>\u4e8c\u3001pointer-events:none\u4e0e\u4e56\u4e56\u7684\u9009\u9879\u5361<\/h3>\n<p>\u4e3a\u4e86\u66f4\u597d\u7684\u793a\u610f<code>pointer-events:none<\/code>\u7684\u542b\u4e49\uff0c\u6211\u505a\u4e86\u4e2a\u9009\u9879\u5361\u7684\u4f8b\u5b50\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201112\/pointer-events-none-tab.html\">\u5f53\u524d\u9009\u9879\u5361\u9f20\u6807\u7981\u7528demo<\/a><\/p>\n<p>\u4e0a\u4e0b\u4e24\u4e2a\u9009\u9879\u5361\uff0c\u5dee\u522b\u5728\u4f55\u5904\u5462\uff1f\u5c31\u662f\u5f53\u524d\u6253\u5f00\u7684\u9009\u9879\u5361\u4e0b\u9762\u8fd9\u4e2a\u5e94\u7528\u4e86<code>pointer-events:none<\/code>\uff0c\u4e8e\u662f\uff0c\u5f53\u6211\u4eec\u9f20\u6807\u79fb\u4e0a\u53bb\u7684\u65f6\u5019\uff0c\u4f1a\u6709\u5982\u4e0b\u7684\u5dee\u5f02\u53cd\u5e94\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u6ca1\u6709\u5e94\u7528pointer-events:none\u7684\u9009\u9879\u5361\u9f20\u6807\u7ecf\u8fc7\u622a\u56fe  \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-06_171517.png\" title=\"\u6ca1\u6709\u5e94\u7528pointer-events:none\u7684\u9009\u9879\u5361\u9f20\u6807\u7ecf\u8fc7\u622a\u56fe\" class=\"alignnone\" width=\"563\" height=\"163\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u5e94\u7528pointer-events:none\u7684\u9009\u9879\u5361\u9f20\u6807\u7ecf\u8fc7\u622a\u56fe \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-06_171537.png\" title=\"\u5e94\u7528pointer-events:none\u7684\u9009\u9879\u5361\u9f20\u6807\u7ecf\u8fc7\u622a\u56fe\" class=\"alignnone\" width=\"559\" height=\"166\" \/><\/p>\n<p>\u4e0b\u9762\u8fd9\u4e2a\u6253\u5f00\u7684\u9009\u9879\u5361\uff0c\u9f20\u6807\u79fb\u4e0a\u53bb\u597d\u50cf\u4e0d\u5b58\u5728\u4e00\u822c\uff0c\u70b9\u51fb\u5b83\u4e5f\u662f\u6ca1\u6709\u4efb\u4f55\u53cd\u5e94\u3002\u8fd9\u5c31\u662f<code>pointer-events:none<\/code>\u7684\u4f5c\u7528\uff1a\u5bf9\u9f20\u6807\u4e8b\u4ef6Say GoodBye!!<\/p>\n<p>\u54c7\u5494\u5494\uff0c<code>pointer-events:none<\/code>\u7684\u4f5c\u7528\u4e0d\u53ea\u662f\u7981\u7528\u94fe\u63a5hover\uff0c\u6253\u5f00\u94fe\u63a5\u7b49\u6548\u679c\uff0c\u662f\u771f\u5b9e\u610f\u4e49\u4e0a\u7684\u5c06<code>onlick<\/code>\u4e8b\u4ef6\u53bb\u6389\u4e86\u3002\u5982\u679c\u60a8\u53cd\u5e94\u8fc5\u901f\uff0c\u521b\u65b0\u610f\u8bc6\u5f3a\u7684\u8bdd\uff0c\u662f\u4e0d\u662f\u60f3\u5230\u53ef\u4ee5\u5229\u7528<code>pointer-events:none<\/code>\u5b9e\u73b0\u6309\u94ae\u3001\u9009\u9879\u5361\u7b49\u7684\u7981\u7528\u6548\u679c\u7b49\u3002<\/p>\n<p>\u6211\u4eec\u5f88\u591a\u65f6\u5019\uff0c\u8003\u8651\u5230\u517c\u5bb9\u6027\u7b49\u539f\u56e0\uff0c\u5e38\u5e38\u4f7f\u7528<code>a<\/code>\u6807\u7b7e\u4f5c\u4e3a\u6309\u94ae\u5b9e\u73b0\u4e00\u4e9b\u4ea4\u4e92\u6548\u679c\uff0c\u4f8b\u5982\u65b0\u6d6a\u5fae\u535a\u7684\u53d1\u9001\u6309\u94ae\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"a\u6807\u7b7e\u4f5c\u4e3a\u6309\u94ae \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-06_181403.png\" title=\"a\u6807\u7b7e\u4f5c\u4e3a\u6309\u94ae\" class=\"alignnone\" width=\"500\" height=\"258\" \/><\/p>\n<p>\u5176\u4e2d\u5c31\u6d89\u53ca\u5230\u6309\u94ae\u7684\u7981\u7528\uff08\u6ca1\u6709\u6587\u5b57\u6216\u6587\u5b57\u4e2a\u6570\u5927\u4e8e140\uff09\u4e0e\u53ef\u7528\u51e0\u79cd\u72b6\u6001\u3002\u800c\u6309\u94ae\u7981\u7528\u72b6\u6001\u4e0b\u70b9\u51fb\u4e8b\u4ef6\u7684\u963b\u6b62\u5f80\u5f80\u662f\u4f7f\u7528JS\u5b9e\u73b0\u7684\uff0c\u800c\u73b0\u5728\uff0c\u6709\u4e86<code>pointer-events<\/code>\uff0c\u6211\u4eec\u662f\u4e0d\u662f\u7701\u6389\u8fd9\u90e8\u5206\u7684\u811a\u672c\u5462\uff1f<\/p>\n<p>\u60f3\u6cd5\u662f\u5f88\u4e0d\u9519\u7684\uff0c\u7136\u800c\uff0c\u4eba\u751f\u4e0d\u5982\u610f\u4e8b\u516b\u4e5d\uff0c\u4e8b\u60c5\u6ca1\u6709\u8fd9\u4e48\u7b80\u5355\u3002<code>pointer-events:none<\/code>\u53ef\u4ee5\u76f4\u63a5\u8ba9\u9f20\u6807\u4e8b\u4ef6\u9171\u6cb9\u5316\uff0c\u4f46\u662f\uff0c\u5176\u5e76\u4e0d\u80fd\u8ba9\u952e\u76d8\u4e8b\u4ef6\u53d8\u6210\u6253\u9171\u6cb9\u7684\u3002\u56e0\u4e3a<code>pointer-events<\/code>\u8fd9\u91cc\u662f&#8221;<code>pointer<\/code>&#8220;\uff0c\u800c\u4e0d\u662f&#8221;<code>any<\/code>&#8220;\u6216\u662f&#8221;<code>every<\/code>&#8220;\u4e4b\u7c7b\u3002<\/p>\n<p>\u8fd8\u662f\u4e0a\u9762\u9009\u9879\u5361demo\u7684\u4f8b\u5b50\uff0c\u5bf9\u4e8e\u7b2c\u4e8c\u4e2a\u9009\u9879\u5361\uff0c\u6211\u4eec\u4f7f\u7528tab\u952e\u7d22\u5f15\u9009\u9879\u5361\uff0c\u4f1a\u53d1\u73b0\uff0c\u5e94\u7528\u4e86<code>pointer-events:none<\/code>\u58f0\u660e\u7684\u9009\u9879\u5361\u53ef\u4ee5\u88abfocus\u9009\u4e2d\uff08\u865a\u6846+\u7279\u610f\u589e\u52a0\u7684\u5185\u9634\u5f71\uff09\uff0c\u800c\u4e14\u56de\u8f66\u7684\u65f6\u5019\uff0c\u5730\u5740\u680f\u5730\u5740\u540e\u9762\u589e\u52a0\u4e86&#8221;#bound2&#8243;\uff0c\u5982\u4e0b\u622a\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u952e\u76d8\u4e8b\u4ef6\u5bf9\u5e94\u7528pointer-events:none\u5143\u7d20\u7684\u4f5c\u7528 \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-06_182553.png\" title=\"\u952e\u76d8\u4e8b\u4ef6\u5bf9\u5e94\u7528pointer-events:none\u5143\u7d20\u7684\u4f5c\u7528\" class=\"alignnone\" width=\"500\" height=\"184\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u951a\u70b9\u51fa\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-06_182757.png\" title=\"\u951a\u70b9\u51fa\u73b0\" class=\"alignnone\" width=\"238\" height=\"60\" \/><\/p>\n<p>\u662f\u4e0d\u662f\u6709\u5fc3\u60c5\u987f\u65f6\u51c9\u4e86\u534a\u622a\u7684\u611f\u89c9\u2014\u2014\u5355\u7eaf\u7684CSS\u7981\u7528\u6309\u94ae\u4e8b\u4ef6\u8fd8\u662f\u4e0d\u9760\u8c31\u554a\uff01<\/p>\n<p>\u77ee\u6cb9\uff0c\u53e4\u8bed\u6709\u4e91\uff1a\u5929\u65e0\u7edd\u4eba\u4e4b\u8def\uff0c\u8f66\u5230\u5c71\u524d\u5fc5\u6709\u8def\uff0c\u67f3\u6697\u82b1\u660e\u53c8\u4e00\u6751\u2026\u2026 \u6240\u4ee5\uff0c\u4e0d\u8981\u8fd9\u4e48\u5feb\u5c31\u9000\u5374\u4e86\uff0c\u8111\u4e2d\u5feb\u5feb\u95ea\u73b0\u6211\u4eec\u4ee5\u5f80\u9875\u9762\u5236\u4f5c\u7684\u4e00\u4e9b\u7ecf\u9a8c\uff0c\u60f3\u60f3\u5176\u4ed6\u65b9\u6cd5~~<\/p>\n<p><span class=\"s\">\/\/zxx: \u5047\u8bbe\u4f60\u5df2\u7ecf\u6709\u8fc7\u4e00\u756a\u4e0d\u9519\u7684\u601d\u8003\u2026\u2026<\/span><\/p>\n<p>\u4e0d\u662f\u5927\u5bb6\u6709\u6ca1\u6709\u7814\u7a76\u8fc7<code>a\u6807\u7b7e+disabled\u5c5e\u6027<\/code>\u8fd9\u79cd\u7ec4\u5408\u3002\u9996\u5148\uff0c\u5927\u5bb6\u90fd\u77e5\u9053<code>input[type=text|button|radio|checkbox]<\/code>\u7b49\u63a7\u4ef6\u5143\u7d20\u5b8c\u5168\u652f\u6301<code>disabled<\/code>\u5c5e\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e8b\u4ef6\u7684\u5b8c\u5168\u7981\u7528\uff08\u9644\u5e26UI\u53d8\u5316\uff09\u3002\u800c<code>a<\/code>\u6807\u7b7e\u5462\u5219\u662f\u90e8\u5206\u6d4f\u89c8\u5668\u90e8\u5206\u652f\u6301\uff0c\u7531\u4e8e\u4e0d\u662f\u672c\u6587\u91cd\u70b9\uff0c\u8fd9\u91cc\u7b80\u5355\u8bf4\u4e0b\u3002<code>a<\/code>\u6807\u7b7e\u5e94\u7528<code>disabled<\/code>\u5c5e\u6027\u662f\u65e0\u6cd5\u963b\u6321\u4efb\u4f55\u9f20\u6807\u7ecf\u8fc7\u6216\u662f\u70b9\u51fb\u4e8b\u4ef6\u7684\uff08\u867d\u7136IE\u4e0b\u7f6e\u7070\u6587\u5b57\u770b\u4e0a\u53bb\u53ef\u4ee5\u7981\u7528\uff09\uff0c\u56e0\u6b64\uff0c\u5728\u5b9e\u9645web\u5f00\u53d1\u7684\u65f6\u5019\uff0c\u6211\u4eec\u4e0d\u5bf9<code>a<\/code>\u6807\u7b7e\u5e94\u7528<code>disabled<\/code>\u5c5e\u6027\u3002\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\uff0c\u60a8\u53ef\u80fd\u4e0d\u77e5\u9053\u7684\u662f\uff0c\u5728\u7edd\u5927\u591a\u6570\u6d4f\u89c8\u5668\u4e0b\uff0c<code>a<\/code>\u6807\u7b7e\u5e94\u7528<code>disabled<\/code>\u53ef\u4ee5\u7981\u7528\u952e\u76d8\u4e8b\u4ef6\uff08\u907f\u5f00<code>tab<\/code>\u952e\u7684\u7d22\u5f15\uff09\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201112\/pointer-events-none-tab-disabled.html\">\u9009\u9879\u5361a\u6807\u7b7e\u5e94\u7528disabled\u5b9e\u4f8b<\/a><\/p>\n<p>\u4f8b\u5982FireFox\u6d4f\u89c8\u5668\u4e0b\uff0c\u6211\u4eec<code>tab<\/code>\u952e\u904d\u5386\u4e8b\u4ef6\u5143\u7d20\uff0c\u7ed3\u679c\u53d1\u73b0\u5148\u524d\u53ef\u4ee5\u88ab\u952e\u76d8focus\u7684\u201c\u5e74\u7ec8\u5956\u201d\u9879\u88ab\u76f4\u63a5\u8df3\u8fc7\u53bb\u4e86\uff0c\u65e0\u6cd5\u88ab\u952e\u76d8\u6355\u83b7\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"a\u94fe\u63a5\u5e94\u7528disabled\u540e\u65e0\u6cd5\u6355\u83b7\u952e\u76d8\u54cd\u5e94 \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-07_102550.png\" title=\"a\u94fe\u63a5\u5e94\u7528disabled\u540e\u65e0\u6cd5\u6355\u83b7\u952e\u76d8\u54cd\u5e94 \" class=\"alignnone\" width=\"544\" height=\"149\" \/><\/p>\n<p><strong>\u66f4\u65b0\u4e8e2013-04-23<\/strong><br \/>\n\u4eca\u5929\u5728FireFox\u4e0b\u91cd\u65b0\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u88ab\u952e\u76d8focus\u4e86\uff0c\u770b\u6765\u662f\u706b\u72d0\u4fee\u590d\u4e86\uff0c\u4e0eChrome\u7b49\u6d4f\u89c8\u5668\u4fdd\u6301\u4e86\u4e00\u81f4\u3002<\/p>\n<p>IE\u6d4f\u89c8\u5668\u4e0b\u540c\u6837\u5982\u6b64\u3002\u2669\u266b \u266c \u266a \u2669\u266a\u2026\u2026\u5fc3\u4e2d\u662f\u4e0d\u662f\u54fc\u8d77\u6b22\u4e50\u7684\u5c0f\u66f2\u5462\uff1f<code>pointer-events:none + disabled = \u5b8c\u7f8e\u7981\u7528<\/code>\u3002\u7136\u800c\uff0c\u5c31\u50cf\u5317\u4eac\u7684\u7a7a\u6c14\u4e00\u6837\uff0c\u6e05\u6670\u7684\u65e5\u5b50\u603b\u662f\u5f88\u77ed\u6682\uff0chappy ending\u4e0d\u662f\u8fd9\u4e48\u5bb9\u6613\u6765\u6ef4\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5728Chrome\u6216\u662fSafari\uff08\u9700\u8981\u8bbe\u7f6e\u504f\u597d\u8bbe\u7f6e\uff09\u4e0b\u67e5\u770b\u4e0a\u9762\u7684\u5b9e\u4f8b\u9875\u9762\uff0c\u4f1a\u53d1\u73b0\u5e94\u7528\u4e86<code>disabled<\/code>\u5c5e\u6027\u7684<code>a<\/code>\u6807\u7b7e\u8fd8\u662f\u53ef\u4ee5\u88ab\u952e\u76d8\u6355\u83b7\uff08\u5185\u9634\u5f71\u6548\u679c\u5448\u73b0\uff0c\u56de\u8f66URL\u5730\u5740\u6539\u53d8\uff09\u3002<\/p>\n<p>\u662f\u4e0d\u662f\u6709\u5fc3\u60c5\u987f\u65f6\u51c9\u4e86\u534a\u622a\u7684\u611f\u89c9\u2014\u2014\u7b80\u5355\u5730\u4f7f\u7528CSS, HTML\u7981\u7528\u6309\u94ae\u4e8b\u4ef6\u8fd8\u662f\u6bd4\u8f83\u60ac\u554a\uff01<\/p>\n<p>\u5509\uff0c\u4e0d\u8981\u90a3\u4e48\u5bb9\u6613\u7070\u5fc3\u561b\uff0c\u5927\u718a\u88ab\u6280\u5b89\u63cd\u4e86137\u6b21\u8fd8\u4e50\u89c2\u5730\u6d3b\u7740\uff0c\u6211\u4eec\u53ef\u4ee5\u518d\u60f3\u60f3\u5176\u4ed6\u6cd5\u5b50\u561b~~<\/p>\n<p>\u8fd9\u91cc\u5c31\u4e0d\u518d\u5356\u5173\u5b50\u4e86\u3002\u5728<code>a<\/code>\u6807\u7b7e\u5143\u7d20\u7684<code>href<\/code>\u5c5e\u6027\u4e0a\u52a8\u5200\u5b50\u3002<code>a<\/code>\u6807\u7b7e\u5143\u7d20\u4e4b\u6240\u4ee5\u80fd\u591f\u54cd\u5e94\u952e\u76d8\u7d22\u5f15\uff0c\u5176\u5173\u952e\u5c31\u5728\u4e8e<code>href<\/code>\u5c5e\u6027\u3002\u6709\u4e86\u8fd9\u4e2a\uff0c\u6d4f\u89c8\u5668\u4f1a\u8ba4\u4e3a\u8fd9\u4e2aa\u5143\u7d20\u662f\u4e2a\u94fe\u63a5\u4e4b\u7c7b\uff0c\u53ef\u4ee5\u8df3\u8f6c\uff0c\u8003\u8651\u5230\u53ef\u8bbf\u95ee\u6027\uff0c\u6709\u5fc5\u8981\u652f\u6301\u952e\u76d8\u54cd\u5e94\u3002\u5426\u5219\uff0c\u5f53\u4f5c\u6446\u8bbe\u5143\u7d20\u5904\u7406\u3002<\/p>\n<p>\u56e0\u6b64\u2026\u2026\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201112\/pointer-events-none-tab-no-href.html\">\u65e0href + pointer-events:none\u7981\u7528demo<\/a><\/p>\n<p>\u8fd9\u4e0b\u5b50\uff0c\u5f7b\u5e95\u8ba9IE, FireFox, Chrome\u7b49\u6d4f\u89c8\u5668\u4e0b\u7684a\u6807\u7b7e\u94fe\u63a5\u57df\u952e\u76d8\u4e8b\u4ef6\u62dc\u62dc\u4e86\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>&lt;a class=\"tab_a tab_on\" style=\"pointer-events:none;\">\u5e74\u7ec8\u5956&lt;\/a><\/pre>\n<\/div>\n<p>\u56e0\u6b64\uff0c\u7981\u7528a\u6807\u7b7e\u94fe\u63a5\u6216\u6309\u94ae\u7684\u5b8c\u7f8e\u7ec4\u5408\u662f\uff1a<code>pointer-events:none &amp; without href<\/code><\/p>\n<h3>\u4e09\u3001pointer-events:none\u60c5\u611f\u5316\u8ba4\u8bc6<\/h3>\n<p><code>pointer-events:none<\/code>\u7684\u4f5c\u7528\u662f\u8ba9\u5143\u7d20\u5b9e\u4f53\u201c\u865a\u5316\u201d\u3002\u4f8b\u5982\u4e00\u4e2a\u5e94\u7528<code>pointer-events:none<\/code>\u7684\u6309\u94ae\u5143\u7d20\uff0c\u5219\u6211\u4eec\u5728\u9875\u9762\u4e0a\u770b\u5230\u7684\u8fd9\u4e2a\u6309\u94ae\uff0c\u53ea\u662f\u4e00\u4e2a\u865a\u5e7b\u7684\u5f71\u5b50\u800c\u5df2\uff0c\u60a8\u53ef\u4ee5\u7406\u89e3\u4e3a\u6d77\u5e02\u8703\u697c\uff0c\u5e7d\u7075\u7684\u8eaf\u4f53\u3002\u5f53\u6211\u4eec\u7528\u624b\u89e6\u78b0\u5b83\u7684\u65f6\u5019\u53ef\u4ee5\u8f7b\u6613\u5730\u6ca1\u6709\u4efb\u4f55\u611f\u89c9\u5730\u4ece\u4e2d\u7a7f\u8fc7\u53bb\u3002<\/p>\n<p>\u4e00\u5207\u90fd\u662f\u5e7b\u5f71!<\/p>\n<h3>\u56db\u3001pointer-events:none\u201c\u5e7b\u5f71\u201d\u7279\u6027\u7684\u5b9e\u9645\u5e94\u7528<\/h3>\n<p>\u4e0a\u9762\u82b1\u4e86\u4e0d\u5c11\u7bc7\u5e45\u8bb2\u4e86\u5982\u4f55\u5229\u7528<code>pointer-events:none<\/code>\u672c\u8eab\u7684\u542b\u4e49\u5b9e\u73b0\u5b8c\u5168\u7981\u7528\u7684a\u6807\u7b7e\u6309\u94ae\u6548\u679c\u3002\u7136\u800c\uff0c\u8003\u8651\u5230\u73b0\u5b9e\u60c5\u51b5\u2014\u2014IE\u6d4f\u89c8\u5668\u4ee5\u53ca\u76ee\u524d\u7684Opera(11.6)\u90fd\u4e0d\u652f\u6301\u6539CSS3\u5c5e\u6027\uff0c\u56e0\u6b64\uff0ca\u6807\u7b7e\u6309\u94ae\u7981\u7528\u7684\u5b9e\u73b0\u4e5f\u53ea\u80fd\u662f\u5634\u4e0a\u8bf4\u8bf4\uff0c\u7eb8\u4e0a\u5199\u5199\u800c\u5df2\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u8fd9\u91cc\u7684\u4f8b\u5b50\u662f\u53ef\u4ee5\u5207\u5207\u5b9e\u5b9e\u5e94\u7528\u5728\u5927\u578bweb\u9879\u76ee\u4e0a\u7684\u3002\u8be5\u4f8b\u5b50\u4e0d\u662f\u5229\u7528<code>pointer-events:none<\/code>\u7684\u672c\u6027\uff08\u7981\u7528\u9f20\u6807\uff09\uff0c\u800c\u662f\u5229\u7528\u5176\u8868\u6027\uff08\u5e7b\u5f71\uff09\u3002<\/p>\n<p>\u4e0b\u56fe\u6240\u793a\u7684\u8fd9\u79cd\u6548\u679c\u76ee\u524d\u5f88\u591a\u5730\u65b9\u90fd\u6709\u89c1\u5230\uff0c\u6c34\u5e73\u6216\u662f\u5782\u76f4\u5217\u8868\u7684\u4e24\u7aef\uff08\u53ef\u80fd\u4f1a\u6709\u5e73\u6ed1\u6eda\u52a8\u6548\u679c\uff09\u6709\u4e2a\u767d\u8272\u7684\u534a\u900f\u660e\u6e10\u53d8\u8986\u76d6\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u5217\u8868\u4e24\u7aef\u6e10\u53d8\u8986\u76d6\u7684\u6548\u679c\u622a\u56fe \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-07_205227.png\" title=\"\u5217\u8868\u4e24\u7aef\u6e10\u53d8\u8986\u76d6\u7684\u6548\u679c\u622a\u56fe \" class=\"alignnone\" width=\"595\" height=\"439\" \/><\/p>\n<p>OK\uff0c\u5982\u679c\u662f\u60a8\uff0c\u8fd9\u91cc\u7684\u767d\u8272\u534a\u900f\u660e\u6e10\u53d8\u8986\u76d6\u8be5\u5982\u4f55\u5b9e\u73b0\uff1f<\/p>\n<p>\u51e0\u5e74\u524d\uff0c\u8981\u5b9e\u73b0\u7c7b\u4f3c\u8fd9\u6837\u7684\u6548\u679c\u4f30\u8ba1\u5f97\u501f\u52a9\u56fe\u7247\uff0c\u4e0d\u8fc7\u73b0\u5728\uff0c\u53ef\u4ee5\u501f\u52a9CSS\u5b9e\u73b0\uff0c\u53ef\u4ee5\u53c2\u89c1\u6211\u4e4b\u524d\u7684\u6587\u7ae0\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=743\">CSS\u5b9e\u73b0\u517c\u5bb9\u6027\u7684\u6e10\u53d8\u80cc\u666f\u6548\u679c<\/a><\/p>\n<p>\u5177\u4f53\u5b9e\u73b0\u975e\u91cd\u70b9\uff0c\u4e0d\u5c55\u793a\uff0c\u60a8\u6709\u5174\u8da3\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762demo\u9875\u9762\u7684\u6e90\u4ee3\u7801\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201112\/pointer-events-none.html\">pointer-events:none\u201c\u5e7b\u5f71\u201d\u5e94\u7528demo<\/a><\/p>\n<p>\u5728IE\u6d4f\u89c8\u5668\u4e0b\uff0cfilter\u6ee4\u955c\u5b9e\u73b0\u7684\u534a\u900f\u660e\u6e10\u53d8\u80cc\u666f\u5143\u7d20\u672c\u8eab\u5c31\u662f\u9542\u7a7a\u7684\u7a7f\u900f\u7684\uff0c\u5373\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u9f20\u6807\u9009\u62e9\u6216\u70b9\u51fb\u534a\u900f\u660e\u80cc\u666f\u540e\u9762\u7684\u5143\u7d20\uff0c\u5982\u4e0b\u622a\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"IE\u6d4f\u89c8\u5668\u4e0b\u534a\u900f\u660e\u7684\u9542\u7a7a\u6548\u679c \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-07_211017.png\" title=\"IE\u6d4f\u89c8\u5668\u4e0b\u534a\u900f\u660e\u7684\u9542\u7a7a\u6548\u679c \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" width=\"402\" height=\"143\" \/><\/p>\n<p>\u4f46\u662f\u5bf9\u4e8eFireFox\u6216\u662fChrome\u7b49\u73b0\u4ee3\u6d4f\u89c8\u5668\uff0c\u5219\u534a\u900f\u660e\u8986\u76d6\u4e0b\u9762\u7684\u5143\u7d20\u4f1a\u88ab\u906e\u4f4f\uff0c\u65e0\u6cd5\u9009\u62e9\u6216\u70b9\u51fb\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\u73b0\u4ee3\u6d4f\u89c8\u5668\u534a\u900f\u660e\u8986\u76d6\u65e0\u6cd5\u7a7f\u900f \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-07_211242.png\" title=\"\u73b0\u4ee3\u6d4f\u89c8\u5668\u534a\u900f\u660e\u8986\u76d6\u65e0\u6cd5\u7a7f\u900f\" class=\"alignnone\" width=\"495\" height=\"158\" \/><\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528<code>pointer-events:none<\/code>\u7684\u201c\u5e7b\u5f71\u201d\u7279\u6027\uff0c\u5bf9\u534a\u900f\u660e\u8986\u76d6\u5143\u7d20\u5e94\u7528<code>pointer-events:none<\/code>\u58f0\u660e\u4f7f\u5176\u53ef\u4ee5\u9f20\u6807\u7a7f\u900f\uff0c\u4e8e\u662f\uff0c\u534a\u900f\u660e\u8986\u76d6\u540e\u9762\u7684\u6587\u5b57\u53ef\u4ee5\u9009\u62e9\u4e86\uff0c\u94fe\u63a5\u4e5f\u53ef\u4ee5\u70b9\u51fb\u4e86\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"pointer-events:none\u5e94\u7528\u540e\u7684\u7a7f\u900f\u6027 \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/2011-12-07_211731.png\" title=\"pointer-events:none\u5e94\u7528\u540e\u7684\u7a7f\u900f\u6027\" class=\"alignnone\" width=\"475\" height=\"142\" \/><\/p>\n<h3>\u4e94\u3001\u517c\u5bb9\u6027<\/h3>\n<p>\u76ee\u524dFireFox\u6d4f\u89c8\u5668\uff0cChrome\u90fd\u652f\u6301\u3002Opera\u4ee5\u53caIE\u4e0d\u652f\u6301\u3002<\/p>\n<h3>\u516d\u3001pointer-events\u6269\u5c55\u4e4b\u6d4f\u89c8\u5668\u652f\u6301\u7684JS\u5224\u65ad<\/h3>\n<p>\u8003\u8651\u5230\u67d0\u4e9b\u6d4f\u89c8\u5668\u4e0d\u652f\u6301CSS3 pointer-events\u5c5e\u6027\uff0c\u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u8981\u5bf9\u4e0d\u540c\u6d4f\u89c8\u5668\u505a\u4e0d\u540c\u5904\u7406\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u5224\u522b\u5f53\u524d\u7528\u6237\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301pointer-events. \u4e0b\u9762\u5c31\u662fJS\u5b9e\u73b0\u9a8c\u8bc1\u7684\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>var supportsPointerEvents = (function(){\n  var dummy = document.createElement('_');\n  if(!('pointerEvents' in dummy.style)) return false;\n  dummy.style.pointerEvents = 'auto';\n  dummy.style.pointerEvents = 'x';\n  document.body.appendChild(dummy);\n  var r = getComputedStyle(dummy).pointerEvents === 'auto';\n  document.body.removeChild(dummy);\n  return r;\n})();<\/pre>\n<\/div>\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u5176\u5b9e\u5bf9\u4e8e\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301\u5176\u4ed6CSS3\u5c5e\u6027\u4e5f\u662f\u6bd4\u8f83\u53d7\u7528\u7684\u3002<\/p>\n<p>\u8be5\u9a8c\u8bc1idea\u6765\u81ea <a href=\"https:\/\/github.com\/ausi\/Feature-detection-technique-for-pointer-events\">Martin Ausw\u00f6ger (https:\/\/github.com\/ausi\/Feature-detection-technique-for-pointer-events)<\/a><\/p>\n<h3>\u4e03\u3001pointer-events\u6269\u5c55\u4e4b\u5e7b\u5f71\u7279\u6027\u7684JS\u66ff\u4ee3\u5b9e\u73b0<\/h3>\n<p>\u76f4\u63a5\u4ee3\u7801\uff08\u57fa\u4e8ejQuery\uff09\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>function noPointerEvents (element) {\n    $(element).bind('click mouseover', function (evt) {\n        this.style.display = 'none';\n        var x = evt.pageX, y = evt.pageY,\n\t    under = document.<span style=\"color:#cd0000;\">elementFromPoint<\/span>(x, y);\n        this.style.display = '';\n        evt.stopPropagation();\n        evt.preventDefault();\n        $(under).trigger(evt.type);\n    });\n}<\/pre>\n<\/div>\n<p>\u4e0a\u9762\u5c55\u793a\u4ee3\u7801\u4e2d\u6709\u4e2a\u6bd4\u8f83\u6709\u610f\u601d\u7684\u65b9\u6cd5\u5c31\u662f<code>elementFromPoint<\/code>\uff0c\u8fd9\u4e1c\u897f\u517c\u5bb9\u6027\u8fd8\u662f\u5f88\u4e0d\u9519\u7684\u3002\u5177\u4f53\u53ef\u53c2\u89c1\u6211\u4e4b\u524d\u8fd9\u7bc7\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=1907\">CSSOM\u89c6\u56fe\u6a21\u5f0f(CSSOM View Module)\u76f8\u5173\u6574\u7406<\/a>\u201d\uff08\u8f83\u957f\uff09\u4e2d\u7684<code>Part \u4e09<\/code>\u90e8\u5206\uff0c\u6709demo\u793a\u610f\u3002<\/p>\n<h3>\u516b\u3001\u5c0f\u5356\u5f04\uff1aa\u6807\u7b7e\u6309\u94ae\u5b8c\u5168\u7981\u7528\u5b9e\u4f8b<\/h3>\n<p>\u6700\u540e\uff0c\u5c0f\u5c0f\u5356\u5f04\u4e0b\uff0c\u7efc\u5408\u672c\u6587\u6742\u4e03\u6742\u516b\u7684\u5185\u5bb9\uff0c\u505a\u4e2a\u53ef\u80fd\u6ca1\u591a\u5927\u5b9e\u9645\u610f\u4e49\u7684\u5b9e\u4f8b\uff0c\u5c31\u662f\u4e0a\u9762\u5520\u53e8\u4e86\u5f88\u591a\u7684a\u6807\u7b7e\u6309\u94ae\u5b8c\u5168\u7981\u7528\u6548\u679c\u3002<\/p>\n<p>\u6309\u94aeUI\u501f\u9274\u65b0\u6d6a\u5fae\u535a\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/201112\/pointer-events-a-button-disabled.html\">a\u6807\u7b7e\u6309\u94ae\u5b8c\u5168\u7981\u7528demo\u5356\u5f04\u7248<\/a><\/p>\n<p><code>\u6ce8<\/code>\uff1a\u672cdemo\u662f\u4e3a\u4e86\u5e94\u7528<code>CSS3 pointer-events<\/code>\u5c5e\u6027\u800c\u4f7f\u7528\u4e86<code>pointer-events<\/code>\uff0c\u5b9e\u9645\u5e94\u7528\u65e0\u9700\u5982\u6b64\u6298\u817e\u3002<\/p>\n<p>\u672cdemo\u5e94\u7528\u4e86\u4e0a\u9762\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301<code>pointer-events<\/code>\u5c5e\u6027\u7684JS\u6269\u5c55\u3002\u5b8c\u6574JavaScript\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>var supportsPointerEvents = (function(){\n    <span style=\"green;\">\/\/\u4e0a\u9762\u9a8c\u8bc1\u6d4f\u89c8\u5668\u652f\u6301pointer-events\u5c5e\u6027\u4ee3\u7801<\/span>\n})();\n\nvar oArea = document.getElementById(\"testArea\"),\n     oButton = document.getElementById(\"testButton\");\n\noArea.onkeyup = function() {\n    var length = this.innerHTML.length;\n    if (length == 0 || length > 140) {\n        oButton.className = \"test_button test_button_disabled\";\n        oButton.removeAttribute(\"href\");\t\n    } else {\n        oButton.className = \"test_button\";\n        oButton.href = \"javascript:\";\t\t\n    }\n};\n\noButton.onclick = function() {\n    <span style=\"green;\">\/\/\u5982\u679c\u652f\u6301CSS3 pointer-events\uff0cCSS\u81ea\u52a8\u5224\u5b9a\u662f\u5426\u6267\u884c\u70b9\u51fb\u4e8b\u4ef6\uff0c\u811a\u672c\u8fd9\u8fb9\u53ef\u4ee5\u65e0\u987e\u5fcc\u6267\u884c\u5f39\u51fa\n    \/\/\u5982\u679c\u4e0d\u652f\u6301CSS3 pointer-events\n    \/\/\u901a\u8fc7\u6309\u94ae\u72b6\u6001\u5224\u5b9a\u662f\u5426\u5f39\u51fa<\/span>\n    if (<span style=\"color:#cd0000;\">supportsPointerEvents<\/span> || (!supportsPointerEvents && this.href)) {\n        alert(\"\u53d1\u9001\u6210\u529f\");\n    }\n    return false;\n};<\/pre>\n<\/div>\n<p>\u901a\u8fc7\u63a7\u5236<code>href<\/code>\u5c5e\u6027\u5b9e\u73b0\u5b8c\u5168\u610f\u4e49\u4e0a\u7684\u7981\u7528\u3002<\/p>\n<h3>\u4e5d\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u672c\u6587\u539f\u672c\u8ba1\u5212\u5199\u4e2a\u77ed\u7bc7\u7684\uff0c\u53ef\u5199\u7740\u5199\u7740\u5c31\u80c0\u51fa\u6765\u4e86\u3002\u5176\u4ed6\u4fd7\u8010\u7684\u8bdd\u5c31\u7701\u4e86\u3002\u672c\u6587\u867d\u7136\u9898\u4e3apointer-events\uff0c\u5b9e\u9645\u8be5\u5c5e\u6027\u4e0d\u7ba1\u4ed6\u4e5f\u4e0d\u59a8\uff0c\u6bd5\u7adf\u662f\u65b0\u4e8b\u7269\u3002\u7136\u800c\uff0c\u672c\u6587\u76f8\u5173\u65c1\u51fb\u4fa7\u6572\u7684\u4e9b\u5185\u5bb9\u5012\u662f\u5f88\u6709\u7528\uff0c\u5e0c\u671b\u4e0d\u8981\u770b\u9898\u601d\u610f\uff0c\u51ed\u7a7a\u63e3\u6469\uff0c\u9057\u6f0f\u771f\u6b63\u6709\u7528\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u611f\u8c22\u9605\u8bfb\uff01<\/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=2091\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=2091<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=2091\" title=\"\u70b9\u51fb\u67e5\u770b\u672c\u6587\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201112\/css3-pointer-events-none.jpg\" width=\"550\" height=\"170\" class=\"imgpad mb10\" \/><\/a><br \/>\npointer-events\u662fCSS3\u4e2d\u53c8\u4e00\u5189\u5189\u7684\u5c5e\u6027\uff0c\u5176\u652f\u6301\u7684\u503c\u725b\u6bdb\u822c\u591a\uff0c\u4e0d\u8fc7\u5927\u591a\u90fd\u4e0eSVG\u76f8\u5173\uff0c\u6211\u4eec\u53ef\u4ee5\u4e0d\u7528\u7406\u4f1a\u3002\u5f53\u4e0b\uff0c\u5bf9\u4e8e\u5076\u4eec\u6765\u8bb2\uff0c\u4e0eSVG\u5212\u5f00\u754c\u7ebf\u503c\u5f97\u4e00\u63d0\u7684\u5c31\u662f[none|auto]\u4e24\u4e2a\u5c5e\u6027\u503c\u4e86\u3002\u5176\u4e2d\u201dauto\u201d\u7684\u611f\u89c9\u4e0ewidth\u5c5e\u6027\u7684\u201dauto\u201d\u7c7b\u4f3c\uff0c\u4e00\u822c\u5728\u4e00\u4e9b\u7279\u6b8a\u573a\u5408\u9732\u4e00\u624b\uff0c\u5e73\u65f6\u95fa\u95e8\u4e0d\u51fa\uff0c\u6ca1\u4ec0\u4e48\u8bf4\u5934\u3002\u56e0\u6b64\uff0c\u4e00\u8f6e\u7b5b\u9009\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u7559\u610f\u7684\u53ea\u662fpointer-events:none\u800c\u5df2\u3002<br \/>\npointer-events:none\u662f\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f\uff0c\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5176\u7cbe\u6e5b\u7684\u8868\u73b0\u4f1a\u8ba9\u4eba\u4e24\u773c\u53d1\u5149\u3002<br \/>\npointer-events:none\u987e\u540d\u601d\u610f\uff0c\u5c31\u662f\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[177,622,661,188,31,96],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/2091"}],"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=2091"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}