0
点赞
收藏
分享

微信扫一扫

css样式、选择器

吴陆奇 2022-03-11 阅读 49

样式

行内式

<span style="color: red;"></span>

内嵌式

<style type="text/css">
 div {
		background-color: gray;
		width: 500px;
		height: 500px;
		}
span {
		color: red;
		}
</style>

外链式

<link rel="stylesheet" href="css/01.css">

导入式

@import url(“sheet1.css”);
@import “sheet1.css”;

 css选择器

标签选择器

ID选择器

 类(class)选择器

 包含选择器

 长度单位

颜色表达 

 

 

 

举报

相关推荐

css基础样式和css3选择器

0 条评论