简体   繁体   中英

CSS issue in vs code

I'm new in VS Code and I'm trying to figure out what went wrong here because css won't work for me. The link is good because it opens with click + ctrl. Both files are in the same folder. So why isn't it working?

在此处输入图片说明

Edit saved:

在此处输入图片说明

Seems like you didn't save index.html . See the round dot? It means it's not saved.

在此处输入图片说明

Your code seems fine. Also, it's always better to use a browser than using built in preview.

使用浏览器并保存您的文件更改以查看您的项目。

Save file and try opening it with a browser. I always prefer browser to test a file. Sometimes 2 browsers if it has a problem. I suggest you to use sublime text 3 or notepad ++ with vs code because it can save you from a lot of headaches. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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