内容简介:Let's take a look at the colorThe new classes will let us
Tailwind 1.4 just got released and with it comes three really cool things:
- Color opacity utlities
- Built-in PurgeCSS
- IE 11 target mode (experimental)
Let's take a look at the color opacity utilities . We already had the opacity class to set the opacity of an entire element.
-
opacity-{0|25|50|75|100}
The new classes will let us set opacity of certain attributes .
I've often wanted to set the opacity of the background of an element, but not the text of the element. This usually meant I had to write some custom CSS to create:
/_ black background at 10% opacity _/ background: rgba(0, 0, 0, 0.1);
Now we have the following classes to set various things!
- bg-opacity-{value}
- text-opacity-{value}
- border-opacity-{value}
- divide-opacity-{value}
- placeholder-opacity-{value}
The value can be 0
, 25
, 50
, 75
, 100
Here's an example:
<button>
my background is 75% opacity
</button>
Here's a CodePen for background opacity with Tailwind.
Not sure what the divide-opacity
does though 路♂️
Like this article? Follow @chrisoncode on Twitter
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
数据结构与算法经典问题解析
纳拉辛哈·卡鲁曼希 / 骆嘉伟 / 机械工业出版社 / 2016-6-1 / CNY 79.00
本书是一本数据结构方面的优秀教材,以Java为描述语言,介绍了计算机编程中使用的数据结构和算法。本书强调问题及其分析,而非理论阐述,共分为21章,讲述了基本概念、递归和回溯、链表、栈、队列、树、优先队列和堆、并查集DAT、图算法、排序、查找、选择算法(中位数)、符号表、散列、字符串算法、算法设计技术、贪婪算法、分治算法、动态规划算法、复杂度类型等内容。每章首先阐述必要的理论基础,然后给出问题集。全......一起来看看 《数据结构与算法经典问题解析》 这本书的介绍吧!
URL 编码/解码
URL 编码/解码
HEX CMYK 转换工具
HEX CMYK 互转工具