ネストした<style>要素
コンポーネントごとにトップレベルの<style>タグは1つだけあります。
しかし、他の要素またはロジックブロック内に<style>タグをネストできます。
この場合、<style>タグはそのままDOMに挿入され、<style>タグのスコープ化または処理は一切行われません。
<div>
<style>
/* this style tag will be inserted as-is */
div {
/* this will apply to all `<div>` elements in the DOM */
color: red;
}
</style>
</div>前へ 次へ