CSS的默认程序? [英] Default program for CSS?

查看:86
本文介绍了CSS的默认程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作我的第一个网页。



我有css文件



身体{

背景颜色:浅蓝色;

}



和代码

I am trying to make my first web page.

I have the css file

body {
background-color: lightblue;
}

and the code

<!doctype html>
<html>
  <head>
    <title> My web Page </title>  
   
<link rel="stylesheet" type="text/css" href="leser/main.css">
  
  </head>

  <body>   
   <h1>  My webSite</h1>
   <ul> 
        <li>home </li>
        <li> <a href="page2.html"> page 2  </li>
        <li> <a href="page3.html"> page 3   </li>
   </ul>
   <h2> This is my homepage content</h2>
   </body>

</html>







问题是css不会表现出来。由加入者将css程序的默认程序收费到skype,但将其改回记事本。我不知道它原来是哪个节目。这是代码还是默认程序错了?



我尝试过:



我尝试将默认的css打开程序更改为不同的类型,我尝试将css作为索引页面内的tage,但这不起作用。



我也试过这个






The problem is that the css wont show. By accedent charged the default program for css programs into skype, but changed it back into notepad. I dont know which program it original was. Is it the code or the default program that is wrong?

What I have tried:

I have tried changing the default css opening program nto different types, and I tried making the css as a tage inside the index page, but that did not work.

I also tried this

<!doctype html>
<html>
  <head>
    <title> My web Page </title>  
   

<style>
body {
    background-color: red;
}

</style>
  </head>

  <body>   
   <h1>  My webSite</h1>
   <ul> 
        <li>home </li>
        <li> <a href="page2.html"> page 2  </li>
        <li> <a href="page3.html"> page 3   </li>
   </ul>
   <h2> This is my homepage content</h2>
   </body>

</html>

推荐答案

仔细查看HTML中的正文标记。你好像拼错了。
Take a close look at your body tag in the HTML. You seem to have spelled it wrong.


这篇关于CSS的默认程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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