首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏learn

    【Web前端】理解 CSS 层叠、优先级和继承

    p { font-size: 16px; } </style> </head> <body>

    段落1

    <p class="<em>custom-font</em> first-of-type { font-style: italic; } /* 段落2: 不继承 body 的字体,但颜色相同 */ .<em>custom-font</em> important 强制覆盖 */ } </style> </head> <body> <p>段落1</p> <p class="custom-font">段落2

    58010编辑于 2024-11-19
  • 来自专栏IMWeb前端团队

    自定义字体

    Hard Stones Sans Strip'; src: url('webfont.ttf') format('truetype'); } .custom-font user/font-face) 自定义的字体 */ font-size: 80px; } </style> </head> <body> <p class="<em>custom-font</em>

    3.3K100发布于 2018-01-08
  • 来自专栏繁依Fanyi 的专栏

    【Java 进阶篇】深入了解 Bootstrap 全局 CSS 样式

    展示如何自定义背景颜色和字体大小: <style> .custom-bg { background-color: #ffcc00; /* 自定义背景颜色 */ } .custom-font

    这个文本使用了自定义字体大小。

    这样,您可以根据项目需求轻松自定义全局 CSS 样式。

    1.6K20编辑于 2023-10-22
  • 来自专栏IMWeb前端团队

    自定义字体

    Hard Stones Sans Strip'; src: url('webfont.ttf') format('truetype'); } .custom-font 使用 @font-face 自定义的字体 */ font-size: 80px; } </style> </head> <body> <p class="<em>custom-font</em>

    2.1K30发布于 2019-12-03
  • 来自专栏自译文章/自学记录

    非样式布局

    /IndieFlower.ttf"); } .custom-font{ font-family: IF; } 1) 自定义字体@font-face 2) font-family: IF; 远程字体的引用: <link rel="stylesheet" type="text/css" href="http://xxx.com/xxx.css"> .custom-font

    2.6K20发布于 2019-08-26
  • 来自专栏老K博客

    适合收藏,一些CSS优化技巧!

    .custom-font { font-family: 'MyVariableFont'; font-variation-settings: 'wght' 600, 'ital' 1; } 61.

    1.5K10编辑于 2024-03-10
  • 来自专栏前端达人

    分享100 个鲜为人知的 CSS 技巧

    .custom-font { font-family: 'MyVariableFont'; font-variation-settings: 'wght' 600, 'ital' 1;

    2.3K10编辑于 2024-03-11
  • 来自专栏柒八九技术收纳盒

    CSS 20大酷刑

    这是一段使用自定义字体的文本。

    1.8K30编辑于 2023-09-10
  • 领券