From 97065b2e68dd8768dc1ea092c893c57ebe205026 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 25 Feb 2021 08:31:36 -0500 Subject: use class="hidden" not style="display:none" --- .../learn/css/building_blocks/selectors/index.html | 2 +- .../zh-cn/conflicting/web/api/push_api/index.html | 2 +- .../create_the_canvas_and_draw_on_it/index.html | 2 +- files/zh-cn/glossary/call_stack/index.html | 2 +- files/zh-cn/glossary/tag/index.html | 10 +- .../accessibility/what_is_accessibility/index.html | 2 +- .../index.html | 2 +- .../upload_files_to_a_web_server/index.html | 2 +- .../css/styling_text/styling_lists/index.html | 2 +- .../learn/forms/advanced_form_styling/index.html | 2 +- files/zh-cn/learn/forms/form_validation/index.html | 2 +- files/zh-cn/learn/html/howto/index.html | 4 +- .../javascript/first_steps/strings/index.html | 2 +- .../first_steps/what_is_javascript/index.html | 2 +- .../forms/create_genre_form/index.html | 6 +- .../api/downloads/download/index.html | 2 +- .../webextensions/api/runtime/onconnect/index.html | 6 +- .../webextensions/api/tabs/create/index.html | 2 +- .../your_first_webextension/index.html | 6 +- files/zh-cn/orphaned/mdn/editor/basics/index.html | 2 +- .../how_to/work_with_animations/index.html | 4 +- files/zh-cn/web/api/analysernode/index.html | 2 +- .../api/animationevent/animationevent/index.html | 2 +- files/zh-cn/web/api/body/arraybuffer/index.html | 2 +- .../web/api/canvasgradient/addcolorstop/index.html | 2 +- .../addhitregion/index.html | 2 +- .../api/canvasrenderingcontext2d/arc/index.html | 4 +- .../api/canvasrenderingcontext2d/arcto/index.html | 2 +- .../canvasrenderingcontext2d/beginpath/index.html | 2 +- .../beziercurveto/index.html | 2 +- .../api/canvasrenderingcontext2d/clip/index.html | 2 +- .../canvasrenderingcontext2d/closepath/index.html | 2 +- .../createlineargradient/index.html | 2 +- .../createradialgradient/index.html | 2 +- .../drawfocusifneeded/index.html | 2 +- .../canvasrenderingcontext2d/drawimage/index.html | 5 +- .../canvasrenderingcontext2d/ellipse/index.html | 2 +- .../api/canvasrenderingcontext2d/fill/index.html | 2 +- .../canvasrenderingcontext2d/fillrect/index.html | 2 +- .../canvasrenderingcontext2d/filltext/index.html | 2 +- .../getlinedash/index.html | 2 +- .../ispointinpath/index.html | 2 +- .../ispointinstroke/index.html | 2 +- .../linedashoffset/index.html | 2 +- .../api/canvasrenderingcontext2d/lineto/index.html | 2 +- .../api/canvasrenderingcontext2d/moveto/index.html | 2 +- .../putimagedata/index.html | 2 +- .../quadraticcurveto/index.html | 2 +- .../api/canvasrenderingcontext2d/rect/index.html | 2 +- .../resettransform/index.html | 2 +- .../canvasrenderingcontext2d/restore/index.html | 2 +- .../api/canvasrenderingcontext2d/rotate/index.html | 2 +- .../api/canvasrenderingcontext2d/save/index.html | 2 +- .../api/canvasrenderingcontext2d/scale/index.html | 8 +- .../scrollpathintoview/index.html | 2 +- .../setlinedash/index.html | 2 +- .../settransform/index.html | 2 +- .../api/canvasrenderingcontext2d/stroke/index.html | 2 +- .../canvasrenderingcontext2d/stroketext/index.html | 2 +- .../canvasrenderingcontext2d/transform/index.html | 2 +- .../canvasrenderingcontext2d/translate/index.html | 2 +- .../zh-cn/web/api/channel_messaging_api/index.html | 2 +- files/zh-cn/web/api/css/index.html | 2 +- .../web/api/cssstylesheet/insertrule/index.html | 2 +- files/zh-cn/web/api/document/adoptnode/index.html | 4 +- .../web/api/element/insertadjacenthtml/index.html | 4 +- .../api/eventtarget/addeventlistener/index.html | 2 +- .../globaleventhandlers/onpointerout/index.html | 2 +- .../web/api/globaleventhandlers/onwheel/index.html | 6 +- files/zh-cn/web/api/headers/keys/index.html | 2 +- .../web/api/htmlelement/input_event/index.html | 2 +- .../web/api/htmlselectelement/remove/index.html | 2 +- files/zh-cn/web/api/imagedata/imagedata/index.html | 2 +- .../zh-cn/web/api/keyboardevent/keycode/index.html | 2 +- .../mutationobserver/mutationobserver/index.html | 4 +- files/zh-cn/web/api/nodeiterator/index.html | 2 +- files/zh-cn/web/api/path2d/addpath/index.html | 2 +- files/zh-cn/web/api/path2d/path2d/index.html | 4 +- files/zh-cn/web/api/request/headers/index.html | 6 +- .../zh-cn/web/api/rtcsessiondescription/index.html | 2 +- files/zh-cn/web/api/wakelock/request/index.html | 2 +- files/zh-cn/web/api/websocket/index.html | 2 +- .../zh-cn/web/api/websocket/readystate/index.html | 2 +- .../createimagebitmap/index.html | 2 +- .../zh-cn/web/css/@media/device-height/index.html | 2 +- files/zh-cn/web/css/_colon_checked/index.html | 4 +- files/zh-cn/web/css/appearance/index.html | 220 ++++++++++----------- .../zh-cn/web/css/background-blend-mode/index.html | 5 +- files/zh-cn/web/css/border-block-end/index.html | 2 +- .../web/css/border-bottom-left-radius/index.html | 10 +- .../web/css/border-bottom-right-radius/index.html | 10 +- .../border-image_generator/index.html | 2 +- .../border-radius_generator/index.html | 2 +- .../box-shadow_generator/index.html | 2 +- .../css/css_colors/color_picker_tool/index.html | 2 +- .../basic_concepts_of_flexbox/index.html | 2 +- .../stacking_context_example_1/index.html | 2 +- .../stacking_without_z-index/index.html | 2 +- .../using_css_transitions/index.html | 24 +-- files/zh-cn/web/css/filter/index.html | 16 +- files/zh-cn/web/css/font/index.html | 11 +- files/zh-cn/web/css/overscroll-behavior/index.html | 2 +- files/zh-cn/web/css/padding-top/index.html | 2 +- .../web/css/repeating-linear-gradient()/index.html | 2 +- .../web/css/repeating-radial-gradient()/index.html | 6 +- .../zh-cn/web/css/text-decoration-style/index.html | 2 +- files/zh-cn/web/css/text-shadow/index.html | 4 +- files/zh-cn/web/css/transition-delay/index.html | 8 +- files/zh-cn/web/css/transition-duration/index.html | 8 +- .../web/css/transition-timing-function/index.html | 16 +- files/zh-cn/web/guide/html/html5/index.html | 2 +- files/zh-cn/web/html/element/iframe/index.html | 4 +- .../zh-cn/web/html/element/input/number/index.html | 3 +- files/zh-cn/web/html/global_attributes/index.html | 2 +- .../unicode_property_escapes/index.html | 2 +- .../reference/global_objects/atomics/index.html | 2 +- .../global_objects/bigint64array/index.html | 10 +- .../global_objects/date/getday/index.html | 2 +- .../reference/global_objects/decodeuri/index.html | 4 +- .../global_objects/decodeuricomponent/index.html | 2 +- .../reference/global_objects/function/index.html | 2 +- .../reference/global_objects/math/floor/index.html | 2 +- .../reference/global_objects/set/index.html | 2 +- .../global_objects/string/lastindexof/index.html | 2 +- .../reference/global_objects/typedarray/index.html | 6 +- .../operators/division_assignment/index.html | 2 +- .../reference/operators/exponentiation/index.html | 2 +- .../operators/exponentiation_assignment/index.html | 2 +- .../reference/operators/left_shift/index.html | 2 +- .../operators/left_shift_assignment/index.html | 2 +- .../reference/operators/logical_not/index.html | 2 +- .../reference/operators/right_shift/index.html | 2 +- .../operators/right_shift_assignment/index.html | 2 +- .../reference/operators/subtraction/index.html | 2 +- .../operators/subtraction_assignment/index.html | 2 +- files/zh-cn/web/mathml/attribute/index.html | 2 +- files/zh-cn/web/media/formats/index.html | 2 +- .../index.html | 2 +- files/zh-cn/web/svg/attribute/fx/index.html | 2 +- 139 files changed, 327 insertions(+), 335 deletions(-) (limited to 'files/zh-cn') diff --git a/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html b/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html index 1ab629b72f..d2c7dcbbbb 100644 --- a/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html +++ b/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html @@ -358,7 +358,7 @@ a.homepage:hover, a.homepage:focus, a.homepage:active { - +
Go to our Home page  Go to our Home page
diff --git a/files/zh-cn/conflicting/web/api/push_api/index.html b/files/zh-cn/conflicting/web/api/push_api/index.html index 76526ed4ce..6f6f75ce4f 100644 --- a/files/zh-cn/conflicting/web/api/push_api/index.html +++ b/files/zh-cn/conflicting/web/api/push_api/index.html @@ -75,7 +75,7 @@ original_slug: Web/API/Push_API/Using_the_Push_API
  • 在你的 service worker 中,设置一个 push 事件句柄来响应接收到的推送消息。
    1. 如果你想要将一个信道消息发送回主 context(看第6步),你需要先取得之前发送给 service worker 的  port2 的引用 ({{domxref("MessagePort")}}) 。这个可以通过传给 onmessage handler ({{domxref("ServiceWorkerGlobalScope.onmessage")}}) 的{{domxref("MessageEvent")}} 对象取得。 具体地说,是 ports 属性的索引 0 。 之后你可以用 {{domxref("MessagePort.postMessage()")}} 来向 port1 发送消息 。
    2. -
    3. 如果你想要使用系统通知,可以调用 {{domxref("ServiceWorkerRegistration.showNotification()")}} 。注意,在我们的代码中,我们将其运行在一个 {{domxref("ExtendableEvent.waitUntil()")}} 方法中——这样做将事件的 生命周期(lifetime)扩展到了通知被处理后,使得我们可以确认事情像我们期望的那样进行。
    4. +
    5. 如果你想要使用系统通知,可以调用 {{domxref("ServiceWorkerRegistration.showNotification()")}} 。注意,在我们的代码中,我们将其运行在一个 {{domxref("ExtendableEvent.waitUntil()")}} 方法中——这样做将事件的 生命周期(lifetime)扩展到了通知被处理后,使得我们可以确认事情像我们期望的那样进行。
  • diff --git a/files/zh-cn/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.html b/files/zh-cn/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.html index 59b0b70392..543e8f1fdf 100644 --- a/files/zh-cn/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.html +++ b/files/zh-cn/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.html @@ -110,5 +110,5 @@ ctx.closePath();

    {{PreviousNext("Games/Workflows/2D_Breakout_game_pure_JavaScript", "Games/Workflows/2D_Breakout_game_pure_JavaScript/Move_the_ball")}}

    - +

    diff --git a/files/zh-cn/glossary/call_stack/index.html b/files/zh-cn/glossary/call_stack/index.html index 3618bf4a21..5d88a7aeed 100644 --- a/files/zh-cn/glossary/call_stack/index.html +++ b/files/zh-cn/glossary/call_stack/index.html @@ -77,5 +77,5 @@ greeting();

    - +

    diff --git a/files/zh-cn/glossary/tag/index.html b/files/zh-cn/glossary/tag/index.html index 8d61a36bc9..49a896cecc 100644 --- a/files/zh-cn/glossary/tag/index.html +++ b/files/zh-cn/glossary/tag/index.html @@ -21,21 +21,21 @@ translation_of: Glossary/Tag

    - +

    - +

    - +

    - +

    - +

    diff --git a/files/zh-cn/learn/accessibility/what_is_accessibility/index.html b/files/zh-cn/learn/accessibility/what_is_accessibility/index.html index 8d63d61112..f75d4f4472 100644 --- a/files/zh-cn/learn/accessibility/what_is_accessibility/index.html +++ b/files/zh-cn/learn/accessibility/what_is_accessibility/index.html @@ -221,7 +221,7 @@ translation_of: Learn/Accessibility/What_is_accessibility

    另见

    - +

    diff --git a/files/zh-cn/learn/forms/form_validation/index.html b/files/zh-cn/learn/forms/form_validation/index.html index 0cdfdd07f1..ba067365aa 100644 --- a/files/zh-cn/learn/forms/form_validation/index.html +++ b/files/zh-cn/learn/forms/form_validation/index.html @@ -846,7 +846,7 @@ addEvent(form, "submit", function () {
  • jQuery 插件:
  • diff --git a/files/zh-cn/learn/html/howto/index.html b/files/zh-cn/learn/html/howto/index.html index cf467bb4cf..5da29d0bf2 100644 --- a/files/zh-cn/learn/html/howto/index.html +++ b/files/zh-cn/learn/html/howto/index.html @@ -150,8 +150,8 @@ translation_of: Learn/HTML/Howto -

         

    +

     

    - +

    diff --git a/files/zh-cn/learn/javascript/first_steps/strings/index.html b/files/zh-cn/learn/javascript/first_steps/strings/index.html index 36352b5f48..aa67e2a0e5 100644 --- a/files/zh-cn/learn/javascript/first_steps/strings/index.html +++ b/files/zh-cn/learn/javascript/first_steps/strings/index.html @@ -284,5 +284,5 @@ typeof myString;

    {{PreviousMenuNext("Learn/JavaScript/First_steps/Math", "Learn/JavaScript/First_steps/Useful_string_methods", "Learn/JavaScript/First_steps")}}

    - +

    diff --git a/files/zh-cn/learn/javascript/first_steps/what_is_javascript/index.html b/files/zh-cn/learn/javascript/first_steps/what_is_javascript/index.html index 39461e4c4e..313a02adc1 100644 --- a/files/zh-cn/learn/javascript/first_steps/what_is_javascript/index.html +++ b/files/zh-cn/learn/javascript/first_steps/what_is_javascript/index.html @@ -497,5 +497,5 @@ for (let i = 0; i < buttons.length; i++) {

    - +

    diff --git a/files/zh-cn/learn/server-side/express_nodejs/forms/create_genre_form/index.html b/files/zh-cn/learn/server-side/express_nodejs/forms/create_genre_form/index.html index ffee2341cf..939ab8fe41 100644 --- a/files/zh-cn/learn/server-side/express_nodejs/forms/create_genre_form/index.html +++ b/files/zh-cn/learn/server-side/express_nodejs/forms/create_genre_form/index.html @@ -217,9 +217,9 @@ block content
    - + -