Coder Social home page Coder Social logo

sike-css0to1-profile's Introduction

CSS练习


D1

  • 引入了 normalize.css
  • 安装 BrowserSync
  • 用margin调整间距时防止传递至父级(即折叠间距)可在父级添加padding:1px; 参考:Collapsing Margins

D2

  • 不占文档流的元素
    1. fixed或者absolute定位的元素
    2. 飘动元素CSS
    3. 背景图
  • 利用伪类清除浮动(clearfix样式)以及overflow:hidden的清除原理CSS2.1 10.6.7 算法
  • html语义化(Semantic Elements)
  • 导航模块应该使用 nav
  • 文章模块就应该使用 article
  • 头部模块应该使用 header

D3

D4

  • 绝对定位(absolute)的的适用情况大概是:
  1. 有一个主要组件,在文件流里面正常布局;
  2. 这个组件有一个附属组件 (它的小伙伴);
  3. 这个附属组件的位置相对于主要组件的位置。
  • 注意:父容器要指定relative,绝对定位组件要指定宽度

D5

  • 媒体查询(Media Query),IE8-9不支持,兼容方案Respond.js
  • Mobile-first vs Desktop-first 参考
  • 实现Media Query只是响应式的第一步参考

sike-css0to1-profile's People

Contributors

mengda1027 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.