ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Taiwindcss 文本换行

    Aug 18, 20223 min read

    用于控制元素中的换行符的功能类。

    Class Properties
    break-normal overflow-wrap: normal; word-break: normal;
    break-words overflow-wrap: break-word;
    break-all word-break: break-all;

    Normal

    使用 break-normal 只在正常的换行点添加换行符。

    Break Words

    如果需要的话,可以使用 break-words 在词中间添加换行符。

    Break All

    使用 break-all 在必要的时候添加换行符,而不是试图保留整个单词。

    相关文章

    Vue3 ref 和 reative 区别

    Vue3中,ref用于将基本类型或引用类型数据转换为响应式对象,其核心原理依赖于Object.defineProperty()或reactive的proxy实现响应式。

    Flutter 通过代码将SingleChildScrollView滑动到底部只需要两个步骤

    Flutter中通过设置ScrollController并调用其jumpTo方法,可以实现将SingleChildScrollView滑动到底部。

    Flutter change TextField border color on focus

    Flutter code snippet demonstrates how to change the border color of a TextField to Colors.grey when it is focused.

    How to install Pandas in a M1 MacBook

    在M1 MacBook上安装Pandas的步骤包括设置虚拟环境、升级pip、安装依赖库、克隆Pandas仓库并执行安装脚本。

    安卓手机脚本录制手机屏幕

    通过安装Android平台工具和scrcpy,可以使用命令行录制安卓手机屏幕并保存为MP4或MKV格式。