GithubHelp home page GithubHelp logo

css-is-good's People

Contributors

founderisshadowwalker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

css-is-good's Issues

对于“CSS 问题.md”文件的一点点小看法

https://github.com/FounderIsShadowWalker/css-is-good/blob/master/CSS%E9%97%AE%E9%A2%98.md

这个问题中的 codepen 内的 demo 有一个代码小问题,container 元素中的 line-height 后面冒号是中文冒号了。

对于这个问题,其实主要就是 inline-blockvertical-align 导致的,同样的存在于 img 标签中,解决方案非常多,主要思考方向应该是:

  • 转为块级元素(可以浮动、定位,或者直接 display: block 等)
  • 改变 vertical-align 的属性值
  • 修改文本的大小或者行高,以调整基线问题

顺带想问一下,containerchild-1 中的 display: block 属性有什么作用?还有那个 position: relative; 的作用又是什么呢?

@FounderIsShadowWalker

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.