Loading

SIPC115 CSS进阶

caelumtian

This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.

前端开发基础之

CSS3

CaelumTian@SIPC115

表格示例

  • table-layout: fixed | auto;
  • border-collapse: collapse | separate;
  • display: table | row | cell;
  • 表格只能应用padding属性

CSS3 高级选择器

  • 兄弟选择器:
    • E ~ F 一般兄弟选择器
    • E + F 相邻兄弟选择器
  • 结构伪类:
    • :first-child
    • :last-child
    • :nth-child     (孩子)
    • :nth-of-type (类型)

border-radius

  • border-radius: 5px
  • 可以指定四个方向
  • 可以使用百分数(50% 10px/10px)

box-shadow

字体图标(@font-face)

  • font-family:字体名称
  • src: 字体连接
@font-face {
	font-family: sipc;
	src: url("../../fonts/icomoon.eot");
	src: url("../../fonts/icomoon.eot?#iefix") format("embedded-opentype"), 
	     url("../../fonts/icomoon.woff") format("woff"), 
	     url("../../fonts/icomoon.ttf") format("truetype"), 
	     url("../../fonts/icomoon.svg") format("svg");
}

transform

  • 平移 (tanslate, translateX, tanslateY)
  • 旋转 (rotate, rotateX, rotateY)
  • 缩放 (scale, scaleX, scaleY)

tansition(过度)

@keyframes

下节课

  • javascript 数据类型
  • javascript 基本语法
  • javascript 对 dom 的操作
Made with Slides.com