Giter Site home page Giter Site logo

「评论」字体特效 about blog HOT 3 OPEN

dongyuanxin avatar dongyuanxin commented on July 22, 2024
「评论」字体特效

from blog.

Comments (3)

dongyuanxin avatar dongyuanxin commented on July 22, 2024 1

@Unicorn-NightFury

absolute下,left和right设置为0,会自动横向延伸铺满;同理,top和bottom设置为0,纵向会铺满。
理解起来的话,就是距离left和right距离都为0,那么只能横向铺满。

from blog.

Unicorn-NightFury avatar Unicorn-NightFury commented on July 22, 2024

前辈你好,我想请教一下你的字体特效里的第一个划线动态特效。里面给::before和::after都设置left:0和right:0的作用是什么?是将内容强行拉为100%吗。可这样不会涉及left和right权重问题吗?着实想不通,动手实践了也没琢磨出道道。上网查也查不出答案,所以只能冒昧打扰前辈了,还请前辈指导一下,谢谢

from blog.

Unicorn-NightFury avatar Unicorn-NightFury commented on July 22, 2024

@dongyuanxin

@Unicorn-NightFury

absolute下,left和right设置为0,会自动横向延伸铺满;同理,top和bottom设置为0,纵向会铺满。
理解起来的话,就是距离left和right距离都为0,那么只能横向铺满。

懂了,谢谢前辈。是只有absolute这种情况下才可以是吗?我用relative试了下好像不行

from blog.

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.