search

Home  >  Q&A  >  body text

为什么的CSS设置没有作用??

<!DOCTYPE HTML>
<HTML>
<head>
<meta charset="utf-8">
<title>代码练习4</title>
<style type="text/css">
p    {font-size:16px
      font-weight:bold
      color:yellow
      }
</style>
</head>
<body>
   <h1>标题</h1>
   <p id="a">代码练习。</p>
   
</body>
</html>


城堡下的诡洞城堡下的诡洞2901 days ago910

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:26:05

    Why does the CSS setting have no effect? ? -PHP Chinese website Q&A-Why does the CSS setting have no effect? ? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-21 16:12:58

    <style type="text/css">
    p{font-size:16px
          font-weight:bold
          color:yellow
          }
    </style>

    注意每次写完要加上分号

    <style type="text/css">
    p{
          font-size:16px;
          font-weight:bold;
          color:yellow;
          }
    </style


    reply
    0
  • Cancelreply