tailwind.config.js 文件的 theme 部分,您可以定义您项目的调色板、类型比例、字体、断点、边框半径值等。// tailwind.config.js const colors = require('tailwindcss/colors') module.exports = { theme: { screens: { sm: '480px', md: '768px', lg:
      主要参考资料: 《Matlab C# Book》,我看的是第一版的电子书,网上可以搜到。      说实话,我觉得C#与Matlab混合编程相比VC与Matlab混合编程没有啥优势,基本上还是通过P/V Invoke操作Matlab mcc编译器生成的C语言版本的DLL。此外,
 本文旨在加深对 LESS 的理解和记忆,供自己开发时参考。相信对没有接触过 LESS 的程序员还是有用的,大佬绕路。一、 安装和使用 LESS  1.1 安装  使用命令行安装 LESS npm install -g less  1.2 使用  less 有多种的使用方法,在这里我向大家介绍最常用的俩种方法。  第一种是直接在浏览器中使用:去下载一个你要的 less.js创建一个文件来
转载 2024-03-14 13:02:08
393阅读
LESSCSS是一种动态样式语言,属于CSS预处理语言的一种,它使用类似CSS的语法,为CSS的赋予了动态语言的特性,如注释、变量、混合、嵌套、运算、函数等,更方便CSS的编写和维护。LESSCSS可以在多种语言、环境中使用,包括浏览器端、桌面客户端、服务端。1.less中的注释:/**/是被编译的 //是不会被编译的。建议使用//去注释!2.less中的变量:// @test_widt
In this lesson, we learn how to generate custom utility classes in tailwind. We add new properties to our JavaScript config object to generate new hel
转载 2018-04-10 18:10:00
118阅读
2评论
Tailwind CSS是一个与Bootstrap、Element等不同的CSS框架,它没有类似btn这样的组件样式,而是基于Utility构建的一套CSS。Tailwind CSS的理念是提供一套完整的,最小单位的工具类CSS,再由设计师将它们组合起来。如果页面有很多Button,需要统一样式,难道需要在每个Button的class中重复一大串样式名吗?为了复用一组样式,Tailwind提供了一
原创 2024-07-05 15:43:06
136阅读
上一篇文章 Angular 中 SASS 样式的使用中,我们已经介绍了 sass 样式的介绍。本文,我们来介绍另一个编写样式的神器 -- TailwindTailwind宣称无需离开...
原创 2022-08-27 01:23:03
167阅读
一、核心概念与设计哲学 原子化CSS框架 Tailwind CSS 采用“功能类优先”(Utility-First)理念,提供细粒度的工具类(如 p-4、text-center),开发者通过组合这些原子类实现定制化样式,而非依赖预置组件(如Bootstrap)。 原子类示例:按钮可通过组合 bg-blue-500 hover:bg-blue-700 text-white font-bold py-
原创 3月前
71阅读
When creating UIs with utility classes, a lot of repetition can occur within the HTML markup. In this lesson, we see how this concern can be addressed
转载 2018-04-12 19:08:00
94阅读
2评论
初始化 Tailwind CSS 通过 npm 安装 Tailwind 安装 Tailwind 以及其它依赖项: npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat post ...
转载 2021-10-27 15:31:00
223阅读
2评论
You are able to extend the custom css with hover, focus, group-hover, responsive variants class in tailwind. https://tailwindcss.com/docs/functions-an
转载 2018-04-11 21:39:00
135阅读
2评论
In this lesson, we take a look at tailwind's mobile-first CSS architecture and learn how to apply styles to specific media queries only. We also disco
转载 2018-04-10 18:16:00
98阅读
2评论
https://github.com/postcss/postcss/blob/master/README-cn.mdPostCSS 是一个允许使用 JS 插件转换样式的工具。 这些插件可以检查(lint)你的 CSS,支持 CSS Variables 和 Mixins, 编译尚未被浏览器广泛支持的先进的 CSS 语法,内联图片,以及其它很多优秀的功能。PostCSS 在工业界被广泛地应用,其中不
转载 5月前
29阅读
CSS的变量声明和使用 :root{ --base: yellow; --spacing: 10px; --blur: 10px; }上面代码定义了3个变量,:root使得所有人可访问img{ filter: blur(var(--blur)); padding: var(--spacing); background:
转载 2024-04-24 15:16:44
123阅读
在 React 项目中使用 Tailwind CSS 是一个很流行的选择,因为它提供了一种实用工具优先的方法来编写 CSS,使得你可以直接在类名中应用样式。这种方法使得样式编写更加简洁和直观。Tailwind CSS 是一个功能强大的 CSS 框架,它通过实用工具优先的方法使得样式编写更加简洁和模块化。与传统的基于类的 CSS 框架不同,Tailwind 提供了一组低级实用工
原创 2024-10-14 09:45:26
39阅读
In this lesson, we learn how to target specific states of elements and apply styles only when those states are triggered.
转载 2018-04-10 18:20:00
120阅读
2评论
                                        less的基本语法目录1.less注释语法1.1 //单行注释1.2 /**/多行注释2.变量2.1普通变量2.2 在字
转载 2024-08-14 11:28:22
82阅读
Tailwind CSS in Action CSS framework
转载 2020-11-10 22:03:00
160阅读
2评论
一、CSS文件的分类和引用顺序Css按照性质和用途,将Css文件分成“公共型样式”、“特殊型样式”、“皮肤型样式”,并以此顺序引用,有需要可以添加版本号1.公共型样式:包含以下几个部分   标签的重置和设置默认值:比如定义a标签。   统一调用背景图和清除浮动或其他需统一处理的长样式:   网站通用布局:   通用模块
转载 2024-07-11 14:52:23
89阅读
文章目录变量1. 概览2. 变量插值3. 用变量定义变量4. 懒声明5. 属性作为变量 变量变量:定义一个常用值1. 概览在样式表中使用某个值数十次甚至数百次的情况并不少见,如下:a, .link { color: #428bca; } .widget { color: #fff; background: #428bca; }变量使得能够在某一处来控制这些值,这样会让我们的代码更易于
转载 2024-04-16 10:25:21
172阅读
  • 1
  • 2
  • 3
  • 4
  • 5