简体   繁体   English

出于某种原因,我的 CSS 不适用于我的 html 我做错了什么?

[英]For some reason my CSS just doesn't apply to my html what am i doing wrong?

ok, disclaimer: I am learning web dev right now and am at a very beginner level so please say something that won't just go over my head... THE PROBLEM: I made a small and basic html file and tried using css on it but for some reason it just won't apply to my html and I've no idea what I'm doing wrong... ok, disclaimer: I am learning web dev right now and am at a very beginner level so please say something that won't just go over my head... THE PROBLEM: I made a small and basic html file and tried using css on但由于某种原因,它不适用于我的 html 而且我不知道我做错了什么......

Here's my html: [enter image description here][1] [1]: https://i.stack.imgur.com/JztBH.png这是我的 html:[在此处输入图像描述][1] [1]:https://i.stack.imgur.com/JztBH.png

Here's my css: [enter image description here][2] [2]: https://i.stack.imgur.com/NexBy.png这是我的 css:[在此处输入图像描述][2] [2]:https://i.stack.imgur.com/NexBy.png

I have them both in the exact same file and I have no clue what I'm doing wrong so please explain my mistake....我将它们都放在完全相同的文件中,我不知道我做错了什么,所以请解释我的错误....

try it试试看

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

You have syntax errors, use this for including css:您有语法错误,使用它来包含 css:

<link rel="stylesheet" href="style.css">

暂无
暂无

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

相关问题 我的HTML / CSS3怎么了? - What am I doing wrong with my HTML/CSS3? 我的 Html 的页脚没有出现,我做错了什么? - The footer for my Html is not appearing, what am i doing wrong? 我的 Html 选项卡开关不起作用,我做错了什么? - My Html tab switch is not working, what am i doing wrong? 我在这个css / html中做错了什么? - What am i doing wrong in this css/html? 我的页面上没有出现“ Facebook喜欢”按钮,我在做什么错? - The Facebook like button doesn't appear on my page, what am I doing wrong? 我想使用Jquery修改网站上的一些HTML,但是我无法使.html正常工作,我在做什么错? - I want to modify some HTML on my website with Jquery but I cant get the .html to work, what am I doing wrong? 我的正则表达式有什么问题? - What am I doing wrong with my regex? 试图将我的 css 与我的 html doc 连接起来,html 加载但 css 没有延续。 这是我的代码,我做错了什么? [文本中的完整详细信息] - Trying to connect my css with my html doc, html loads but css does not carry over. Here's my code, what am I doing wrong? [Full details in text] 无法将我的 php 页面重定向到我的 html 谢谢页面。 我究竟做错了什么? - Can't redirect my php page to my html thank you page. What am I doing wrong? 我不知道我做错了什么,但是我的带有 js 和 css 的 .html 不会显示必须显示的内容 - I don't know what I'm doing wrong but my .html with js and css won't show what is has to show
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM