{"id":1060,"date":"2011-12-20T22:35:35","date_gmt":"2011-12-20T14:35:35","guid":{"rendered":"http:\/\/www.gaigaiming.com\/?p=1060"},"modified":"2011-12-20T22:35:35","modified_gmt":"2011-12-20T14:35:35","slug":"%e8%bd%ac%e8%bd%bd%e5%8e%bb%e6%8e%89%e6%8c%89%e9%92%ae%e7%82%b9%e5%87%bb%e8%99%9a%e7%ba%bf%e6%a1%86","status":"publish","type":"post","link":"https:\/\/www.gaigaiming.com\/index.php\/2011\/12\/20\/%e8%bd%ac%e8%bd%bd%e5%8e%bb%e6%8e%89%e6%8c%89%e9%92%ae%e7%82%b9%e5%87%bb%e8%99%9a%e7%ba%bf%e6%a1%86\/","title":{"rendered":"[\u8f6c\u8f7d]\u53bb\u6389\u6309\u94ae\u70b9\u51fb\u865a\u7ebf\u6846"},"content":{"rendered":"<p>\u5982\u4f55\u53bb\u9664\u865a\u7ebf\u6846<br \/>\n\u5bf9\u4e8e\u5982\u4f55\u53bb\u9664\u865a\u7ebf\u6846\uff0c\u6709\u5f88\u591a\u4eba\u63a8\u8350\u8fd9\u6837\u5199\uff1a<\/p>\n<p>a:focus, input[type=button] ,input[type=submit] {        outline:none;}<br \/>\n\u4ece\u8fd9\u6bb5\u4ee3\u7801\u6765\u770b\uff0c\u8ba9\u6211\u4eec\u5c0f\u5206\u6790\u4e00\u4e0b\uff0c\u6709\u4e24\u70b9\u53ef\u80fd\u662f\u9700\u8981\u6211\u4eec\u6ce8\u610f\u7684\uff1a<\/p>\n<p>\u53bb\u9664\u4e0d\u5168\u9762<br \/>\nIE6\/7 \u5e76\u4e0d\u652f\u6301 outline \u5c5e\u6027, firefox \u4e0b input \u7684\u865a\u7ebf\u5e76\u6ca1\u6709\u53bb\u9664<\/p>\n<p>\u53bb\u9664\u592a\u591a<br \/>\n\u9664 IE6\/7 \u5916\u7684\u6240\u6709\u6d4f\u89c8\u5668\u7684\u6309\u94ae\uff08firefox\u6ca1\u53bb\u6389\uff09\u548c\u94fe\u63a5\u90fd\u88ab\u53bb\u6389\u865a\u7ebf\u6846<\/p>\n<p>\u8fd9\u662f\u770b\u8d77\u6765\u77db\u76fe\u7684\u4e24\u4e2a\u95ee\u9898\u3002\u5176\u5b9e\u4e0d\u7136\uff0c\u56e0\u4e3a\u662f\u4e24\u4e2a\u73b0\u540c\u6027\u8d28\u7684\u95ee\u9898\u3002\u4ece\u6280\u672f\u4e0a\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5e76\u4e0d\u5168\u9762\u3002\u4ece\u4f53\u9a8c\u4e0a\uff0c\u6211\u60f3\u4f60\u4e5f\u77e5\u9053\uff0c\u6211\u4eec\u53ea\u662f\u53bb\u6389\u90e8\u5206\u4e0d\u9700\u8981\u7684\uff0c\u53bb\u6389\u5168\u90e8\u5e76\u4e0d\u53cb\u597d\u3002\u6240\u4ee5\uff0c\u4e0a\u9762\u7684\u5199\u6cd5\u4e2a\u4eba\u5e76\u4e0d\u63a8\u8350\u3002<\/p>\n<p>\u5173\u4e8e\u6f5c\u89c4\u5219\u3001\u5173\u4e8eBUG<br \/>\nDemo: \u6211\u80fd\u5728\u7528 TAB \u952e\u7684\u65f6\u5019\u4e0d\u53bb\u6389\u865a\u7ebf\u6846\u5417\uff1f\u4e3a\u4ec0\u4e48\u6211\u7684 input \u5728 firefox \u4e0b\u6ca1\u6709\u6210\u529f\u53bb\u9664\u865a\u7ebf\u6846\uff1f\u8fd9\u4e9b\u95ee\u9898\u88ab\u63d0\u51fa\u7684\u65f6\u5019\uff0c\u56f0\u6270\u7740\u4e0d\u5c11\u4eba\u3002\u56e0\u4e3a\u8fd9\u91cc\u9762\u6709\u6f5c\u89c4\u5219\u3002\u603b\u7ed3\u4e00\u4e0b\uff0c\u770b\u8fd9\u4e2a\u8868\uff1a<\/p>\n<p>\u53bb\u9664\u7684\u65b9\u5f0f\u751f\u6548\u7684\u6d4f\u89c8\u5668outline:noneIE8 | Firefox | Webkit |OperahidefocusIE:focus{outline:none;}IE8 | Firefox | Webkit | Opera:active{outline:none;}\u540c\u4e0a\uff0c\u4f46\u5728tab\u7684\u65f6\u5019\uff0cIE\u5c06\u4fdd\u7559\u865a\u7ebf\u6846::-moz-focus-inner{outline:none;}Firefox \u5b58\u7740bug\uff0cinput \u987b\u8981\u53bb\u8fd9\u4e2a\u4f2a\u72b6\u6001\u4e0b\u7684\u8fb9\u6846<\/p>\n<p>\u597d\u5427\uff0c\u4e0d\u5f97\u4e0d\u627f\u8ba4\u7684\u662f\uff0c\u8fd9\u4e9b\u5c0f\u4e8b\uff0c\u90fd\u8fd8\u771f\u662f\u4e00\u95e8\u5b66\u95ee\uff0c\u6211\u4eec\u8981\u597d\u597d\u5b66\u4e60\uff0c\u597d\u597d\u79ef\u7d2f\u3002\u591a\u7528\u70b9\u5fc3\uff0c\u628a\u4e1c\u897f\u505a\u5f97\u66f4\u597d\u3002<\/p>\n<p> IE6\u548cIE7DE \u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p><input class=\"btn_srh1\" type=\"submit\" name=\"button\" id=\"button\" value=\"\u767b\u9646\" onfocus = this.blur() \/><br \/>\n        <input class=\"btn_srh2\" type=\"submit\" name=\"button\" id=\"button\" value=\"\u5173\u95ed\" onfocus = this.blur() \/><\/p>\n<p>\u603b\u7ed3\uff1a\u6211\u7528\u7684\u65b9\u5f0f<\/p>\n<p>input[type=button]:focus,input[type=submit]:focus{outline:none;}\/\/IE<br \/>\ninput[type=button]::-moz-focus-inner{outline:0;}\/\/\u706b\u72d0<\/p>\n<p>a{outline:none;}\/\/IE\u6587\u5b57\u94fe\u63a5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u53bb\u9664\u865a\u7ebf\u6846 \u5bf9\u4e8e\u5982\u4f55\u53bb\u9664\u865a\u7ebf\u6846\uff0c\u6709\u5f88\u591a\u4eba\u63a8\u8350\u8fd9\u6837\u5199\uff1a a:focus, input[type=button [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1060","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/comments?post=1060"}],"version-history":[{"count":0,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1060\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/media?parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/categories?post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/tags?post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}