1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-21 00:35:55 +00:00

docs: adjust app.head example ()

This commit is contained in:
Alex Liu 2025-03-13 15:06:30 +08:00 committed by GitHub
parent 354e0a7f2c
commit e43aa58f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions
docs/1.getting-started
packages/schema/src/config

View File

@ -119,7 +119,7 @@ const title = ref('Hello World')
<Head>
<Title>{{ title }}</Title>
<Meta name="description" :content="title" />
<Style type="text/css">
<Style>
body { background-color: green; }
</Style>
</Head>

View File

@ -146,12 +146,12 @@ export default defineResolvers({
* ],
* // please note that this is an area that is likely to change
* style: [
* // <style type="text/css">:root { color: red }</style>
* { children: ':root { color: red }', type: 'text/css' }
* // <style>:root { color: red }</style>
* { textContent: ':root { color: red }' }
* ],
* noscript: [
* // <noscript>JavaScript is required</noscript>
* { children: 'JavaScript is required' }
* { textContent: 'JavaScript is required' }
* ]
* }
* }