简体   繁体   English

使用 Komodo IDE 12:不知道如何将 index.html 链接到 style.css

[英]Using Komodo IDE 12: Do not know how to link index.html to style.css

enter image description here I am not sure how to link my HTML to the CSS.在此处输入图像描述我不确定如何将我的 HTML 链接到 CSS。 I know that I have to make sure that they are in the same folder but since this is my first project, I dont quite know my way around Komodo.我知道我必须确保它们在同一个文件夹中,但由于这是我的第一个项目,我不太了解 Komodo 的方式。 Any help would be appreciated!任何帮助,将不胜感激!

I have already added the following:我已经添加了以下内容:

<link rel="stylesheet" type="text/css" href="styles.css"/>

This is what I have so far:这是我到目前为止所拥有的:

  • Copy the files to the same directory.将文件复制到同一目录。 Then open up Komodo.然后打开科莫多。

  • Select from the menu project–>new project . Select 从菜单 project– >new project Select the new project directory. Select 新建项目目录。

  • In Komodo on the left panel it will display the list of files.在左侧面板的 Komodo 中,它将显示文件列表。

  • You can preview the index file in browser by going to view–>browser view .您可以通过查看->浏览器视图在浏览器中预览索引文件。

  • Select the default browser to view the file in Komodo side panel. Select 默认浏览器在 Komodo 侧面板中查看文件。

  • Edit the files to see what changes.编辑文件以查看更改内容。

Your styles.css should be in the same folder as your html file.您的 styles.css 应与 html 文件位于同一文件夹中。

I suggest you this website if you want to learn HTML and CSS: http://www.w3schools.com/如果你想学习 HTML 和 CSS,我建议你这个网站: http://www.w3schools.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM