css的学习_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:23:20
Original
787 people have browsed it

第一天.

css

1.知道 内联 内部 外部 的优先权

2.css的语法

3.id 选择器 以及 类选择器 和属性选择器

4.对图片  长 宽 的编辑  调整图片

5.通过内部 对整个页面 文字  颜色  的编辑

主要讲解了  

一级.内联  权值1000  优先权最高

二级 ID选择器 #content, 权值0100

三级 类 伪类选择器  contenr 权值 0010

四级 元素选择器  div , p, 权值 0001

 熟悉嵌套的方法 和优先级

<style type="text/css"><br /><br /><link rel="stylesheet" type="text/css"  herf="xx.css"><br /><br />
Copy after login
<br /><br />
Copy after login
Copy after login
.类名{属性:值   }        .                                
Copy after login
  <br /><p class="类名">  </p>                         
Copy after login
<br /><br />
Copy after login
Copy after login

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!