html怎么引用css

CSS

1个回答

写回答

binggo712

2022-02-13 14:30

+ 关注

CSS
CSS

可以在 HTML 文档的 head 标签中使用 link 元素引用 CSS 文件,例如:

html

My Website

Welcome to my website!

This is some text on my website.

在上面的例子中,class="url" target="_blank" rel="nofollow noreferrer" href="/to/?target=style.CSS" 表示引用一个名为 "style.CSS" 的 CSS 文件,该文件必须在同一目录下。

举报有用(17分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号