Skip to content

[html] 第154天 不用h标签、css和js怎么实现多个字的字体连续放大的效果? #1213

Open

Description

@haizhilin2013

第154天 不用h标签、css和js怎么实现多个字的字体连续放大的效果?

Activity

  1. xxf1996 commented on Sep 17, 2019

    @xxf1996

    可以使用<big>标签来不断的加大字体,但是这个标签现在已经被废弃使用了。

  2. zejunking commented on Sep 17, 2019

    @zejunking

    可以使用em单位实现相对于父级标签的字体放大或缩小(大于1即放大,小于1即缩小)

    <div style="font-size:16px;">parent<div style="font-size: 2em;">children</div></div>
  3. qhdxwdm commented on Oct 10, 2019

    @qhdxwdm
    <big>
    <font>
    

    都可以,但是都不提倡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions