码迷,mamicode.com
首页 > Web开发 > 详细

Css 基础学习

时间:2017-05-08 00:23:38      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:标签   highlight   基本   font   pre   学习   16px   基础   ext   

 

 

 

css 基本选择器

css基本选择器有三种方法

第一种:

class选择器

.c1{
color: red;
} <div class=‘c1‘>hello world</div>

 

第二种:

标签选择器

a{
	  color:red;
	}

	div
	select
	input,type=text
	input[type=‘text‘]{
	}
	
	html所有的标签为红色

  

第三种:

ID选择器

	#uu{
	
	}
	<div id="uu"><div>

  

 

Css 基础学习

标签:标签   highlight   基本   font   pre   学习   16px   基础   ext   

原文地址:http://www.cnblogs.com/yexiaochong/p/6822828.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!