将CSS样式表连接到项目 [英] Connecting CSS stylesheet to project

查看:56
本文介绍了将CSS样式表连接到项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力将我的css文件连接到我的网站项目。



这是我的文件/子文件夹目录和文件夹中的文件名< br $>


分配(主文件夹)

index.html



css(文件夹)

style.css



html(文件夹)

form.html

table.html

text.html





所以要澄清一下,在我的文档中我有一个文件夹里面叫'assign'还有2个文件夹(html和css)和1个名为index.html的文件。



里面的html文件夹有3个文件(表格。 html,table.html,text.html)



在css文件夹中有1个文件(style.css)



我尝试过:



link href =css / style.css =stylesheettype = text / css



link href =style.css =stylesheettype =text / css

I am struggling to connect my css file to my website project.

this is the directory of my files/sub-folders and file names inside the folders

assign (main folder)
index.html

css (folder)
style.css

html (folder)
form.html
table.html
text.html


So to clarify, in my documents I have a folder called 'assign' inside there are 2 more folders (html and css) and 1 file called index.html.

inside the html folder there are 3 files (form.html, table.html, text.html)

Inside the css folder there is 1 file (style.css)

What I have tried:

link href="css/style.css" rel="stylesheet" type="text/css"

link href="style.css" rel="stylesheet" type="text/css"

解决方案

您只需将解决方案资源管理器拖放到您的文件中即可。 VS会正确添加它。
All you need to do is drag and drop from the Solution Explorer into your file. VS will add it in properly.


这篇关于将CSS样式表连接到项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆