美文网首页
H5的样式 div 和 span

H5的样式 div 和 span

作者: nihau | 来源:发表于2016-11-22 13:25 被阅读678次
<!DOCTYPE html>
<html>
  <head>
    <style >
    span.red{color: red;}
      .cities{
        background-color: black;
        color: white;
        margin: 20px;
        padding: 20px;

      }
    </style>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <div class="cities">
      <h2>London</h2>
      <p>
        London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.
      </p>
    </div>
    <div class="cities">
      <h2>Paris</h2>
      <p>
        Paris is the capital and most populous city of France.
      </p>
    </div>

    <div class="cities">
      <h2>Tokyo</h2>
      <p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area,
        and the most populous metropolitan area in the world.</p>
      </div>


      <h1>my <span class="red">Important</span>Heading</h1>
  </body>
</html>

相关文章

  • H5的样式 div 和 span

  • CSS显示模式

    div 和 span 标签 div标签:配合CSS完成网页的基本布局,设置样式 span标签:配合CSS来修改网页...

  • 3-HTML标签(2)

    一、div和span div和span是非常重要的标签,div的语义是division“分割”; span的语义就...

  • div与span的区别

    理解div与span的区别: div和span是非常重要的标签,div的语义是division“分割”; span...

  • CSS总结

    p上下有间距,title加粗,div和span无样式 div:换行,块元素eg:h1,pspan:不换行,内联元素...

  • 2020-06-11 html用法

    div和span区别 span 有多高占多高 div 占用一行

  • CSS的显示模式

    1 div和span标签 1 div标签的作用是什么2 span标签的作用是什么3 div和span有什么区别4 ...

  • html

    块级标签

    div和span是非常重要的标签,div的语义是division“分割”; s...

  • reset.css

    项目里清除默认样式(reset.css): html, body, div, span, applet, obje...

  • 学习第二天

    css 层叠样式表 修饰 div (装东西的空白标签) +span (修饰文字细节的空白标签)写入style(样式...

网友评论

      本文标题:H5的样式 div 和 span

      本文链接:https://www.haomeiwen.com/subject/sobppttx.html