Code Monkey home page Code Monkey logo

topic-css's Introduction

Topic-CSS

Collections of some basic CSS

对常见的 CSS 基本只是做一个基本的梳理

###Todo-list

1. 单位; 2. 定位; 3. 浮动; 4. 结构和层叠; 5. 选择器;

  1. 字体;
  2. 文本;

topic-css's People

Contributors

jialezhang avatar

Watchers

James Cloos avatar

topic-css's Issues

在一个有padding的框内,贴近右侧

  1. 给目标元素一个wrapper,这个wrapper占据右侧,然后text-align:right
  2. 父元素relative,子元素float:right的话,会忽视padding直接到右边顶上

line-height

一篇讲述line-height的翻译

  • line-height尽量设置为数字(不带任何单位),带了单位或者百分数的有各种问题;
  • line-height的继承:如果不是纯数字的,后代元素都会以父级元素的计算出来的line-height为自己的,比如父级元素的line-heihgt为24px,即是子代元素的行高为30px,它的line-height依然为24px,这样就会很难看;

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.