css中的三种选择器

 时间:2026-04-21 20:38:58

1、新建文件创建标记选择器

css中的三种选择器

2、效果

css中的三种选择器

3、创建类别选择器

css中的三种选择器

4、效果

css中的三种选择器

5、创建ID选择器

css中的三种选择器

6、效果

css中的三种选择器

7、附上源码

<style>

h1{color:red;}

.class{width:100px; height:100px; background:#903; margin-top:20px;}

#id{width:100px; height:100px; background:#06F; margin-top:20px;}

</style>

<body>

<h1>标记选择器</h1>

<div class="class">类别选择器</div>

<div id="id">ID选择器</div>

</body>

css中的三种选择器

  • Code::block的C编译器安装教程
  • 解决安装rational rose出现提示无法启动此程序
  • JAVA入门之Swing中的常用控件及布局的综合使用
  • 使用Pycharm编写窗口并显示Helloworld程序
  • 如何写国际学术会议原稿
  • 热门搜索
    小学生春节手抄报大全 写规范字手抄报内容 爱国手抄报大全 关于感恩节的手抄报 日行一善手抄报花边 守则规范手抄报 讲卫生手抄报 健康与卫生手抄报 有关写字的手抄报 英语节日手抄报图片