ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    TailwindCSS 和 less 的结合使用

    Jun 20, 20223 min read
    @import "./mixin.less";
    
    .page-wrapper.home {
      @apply relative top-0 w-full h-screen overflow-y-auto;
      background-color: #f6f5f4;
    
      > .page-container {
        @apply relative w-full min-h-screen mx-auto flex flex-row justify-center items-start;
    
        >.sidebar-wrapper{
          @apply flex-shrink-0;
        }
    
        > .memos-wrapper {
          @apply relative w-full max-w-2xl min-h-full overflow-x-hidden flex flex-col justify-start items-start px-4 sm:pr-6;
    
        }
      }
    }
    

    使用关键字 @apply 定义tailwindcss的类名

    相关文章

    Linux中sudo和su的区别

    在Linux中,su用于长期更改用户环境和权限,需目标用户密码,而sudo用于临时获取特权,需当前用户密码。

    ERROR- Exception with an error code- 0x29 (SPXERR_GSTREAMER_NOT_FOUND_ERROR)

    问题总结:Azure Speech CLI在使用时遇到错误代码0x29,原因是系统中未找到GStreamer,解决方法是安装或正确配置GStreamer。

    解决Can't parse entities can't find end of the entity starting at byte offset 6643

    错误消息指出字幕文本的Markdown无效,建议使用`helpers.util.escape_markdown`进行转义,并推荐使用MarkdownV2版本。

    HTML的W3C标准规范有哪些?

    W3C制定了包括HTML5、HTML4、XHTML、Web Accessibility Initiative(WAI)以及HTML与CSS结合使用等在内的多项HTML标准规范。

    Array.prototype.reverse()

    `Array.prototype.reverse() 方法颠倒数组元素顺序,改变原数组并返回。`