diff --git a/public/docs/ts/latest/tutorial/toh-pt5.jade b/public/docs/ts/latest/tutorial/toh-pt5.jade index 6d498da6f3..cf97ad3ab8 100644 --- a/public/docs/ts/latest/tutorial/toh-pt5.jade +++ b/public/docs/ts/latest/tutorial/toh-pt5.jade @@ -189,7 +189,7 @@ code-example(language="sh" class="code-shell"). :marked ### Create *AppComponent* - ## 创建 *AppComponent* + ### 创建 *AppComponent* The new `AppComponent` is the application shell. It will have some navigation links at the top and a display area below. @@ -310,14 +310,21 @@ code-example(language="sh" class="code-shell"). Open `index.html` and ensure there is a `` element (or a script that dynamically sets this element) at the top of the `` section. + + 打开`index.html`,确保它的``区顶部有一个``元素(或动态生成该元素的脚本)。 +makeExample('toh-5/ts/src/index.html', 'base-href', 'src/index.html (base-href)') .callout.is-important header base href is essential + + header 基地址(base href)是必须的 + :marked For more information, see the [Set the base href](../guide/router.html#!#base-href) section of the [Routing and Navigation](../guide/router.html) page. + + 要了解更多信息,请参见[路由与导航](../guide/router.html)章的[设置基地址(base href)](../guide/router.html#!#base-href)部分。 a#configure-routes diff --git a/public/resources/css/_translate.scss b/public/resources/css/_translate.scss index 141c708fde..ae359cd83e 100644 --- a/public/resources/css/_translate.scss +++ b/public/resources/css/_translate.scss @@ -121,3 +121,9 @@ body, .main-nav .main-nav-button, .translated-cn { img { max-width: 100%; } + +.l-sub-section { + p { + margin-bottom: 0; + } +}