What is best replacement for in CSS?

后端 未结 3 921
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 15:07

I am working on updating an old website which uses font tags, to use CSS. The old HTML uses numeric font sizes (1-7) like this:

Some text         


        
3条回答
  •  别跟我提以往
    2021-02-05 15:51

    xx-small, x-small, small, medium, large, x-large, xx-large A set of absolute size keywords based on the user's default font size (which is medium). Similar to presentational HTML's through where the user's default font size is .

    /*  values */
    font-size: xx-small  
    font-size: x-small /*  */
    font-size: small /*  */
    font-size: medium /*  */
    font-size: large /*  */
    font-size: x-large /*  */
    font-size: xx-large /*  */
    font-size: -webkit-xxx-large; /*  */
    

    Reference

    • CSS font-size - Mozilla Development: https://developer.mozilla.org/en-US/docs/Web/CSS/font-size

提交回复
热议问题