Giter Club home page Giter Club logo

Comments (6)

 avatar commented on June 16, 2024

没想到css2还有一个clip属性。这个效果很nice。

from css-secrets.

banrikun avatar banrikun commented on June 16, 2024

这个用法太精妙了,比JS模拟不知道要高到哪里去
原汁原味,靠谱方便

from css-secrets.

showonne avatar showonne commented on June 16, 2024

太nice,学习了。

from css-secrets.

jimyuan avatar jimyuan commented on June 16, 2024

不过看Dash的CSS文档里写到:

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

我想如果用 opacity: 0 来代替 clip �也可以吧?

from css-secrets.

nikoohp avatar nikoohp commented on June 16, 2024

可以的吧

from css-secrets.

cssmagic avatar cssmagic commented on June 16, 2024

@jimyuan 谢谢分享。

确实不推荐使用 clip 属性。根据 CSS 规范的设计,它应该被它的升级版 clip-path 所取代(只不过 clip-path 的支持度还不够好)。作者在这里使用 clip 应该是为了简化代码,我们把它当作示意性的隐藏手段就好。

隐藏复选框的目的,一是让它看不见,二是避免用户与之交互,因此 opacity 还不够严密。

from css-secrets.

Related Issues (20)

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.