File tree Expand file tree Collapse file tree
src/content/docs/zh-cn/reference Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ title: 模板指令参考
33---
44
55import Since from ' ~/components/Since.astro' ;
6+ import ReadMore from ' ~/components/ReadMore.astro'
67
78** 模板指令** 是特殊的 HTML 属性,它可以在任一 Astro 组件模板(` .astro ` 文件)中使用,也可以在 ` .mdx ` 文件中使用。
89
@@ -208,7 +209,7 @@ import api from '../db/api.js';
208209
209210你可以在组件中同时使用 ` <style> ` 和 ` <style is:global> ` ,创建一些全局样式规则,同时仍对大部分组件 CSS 进行作用域控制。
210211
211- 📚 有关全局样式工作的更多细节,请参见[ 样式 & CSS] ( /zh-cn/guides/styling/#全局样式 ) 页面。
212+ < ReadMore > 有关全局样式工作的更多细节,请参见 [ 样式 & CSS] ( /zh-cn/guides/styling/#全局样式 ) 页面。</ ReadMore >
212213
213214``` astro
214215<style is:global>
@@ -248,7 +249,7 @@ import api from '../db/api.js';
248249</script>
249250```
250251
251- 📚 查看 [ 客户端脚本] ( /zh-cn/guides/client-side-scripts/ ) 如何在 Astro 组件中工作。
252+ < ReadMore >查看 [ 客户端脚本] ( /zh-cn/guides/client-side-scripts/ ) 如何在 Astro 组件中工作。</ ReadMore >
252253
253254### ` define:vars `
254255
You can’t perform that action at this time.
0 commit comments