内容简介: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
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
C++数值算法(第二版)
William T.Vetterling、Brian P.Flannery、Saul A.Teukolsky / 胡健伟、赵志勇、薛运华 / 电子工业出版社 / 2005年01月 / 68.00
本书选材内容丰富,除了通常数值方法课程的内容外,还包含当代科学计算大量用到的专题,如求特殊函数值、随机数、排序、最优化、快速傅里叶变换、谱分析、小波变换、统计描述和数据建模、常微分方程和偏微分方程数值解、若干编码算法和任意精度的计算等。 本书科学性和实用性统一。每个专题中,不仅对每种算法给出了数学分析和比较,而且根据作者的经验对算法做出了评论和建议,并在此基础上给出了用C++语言编写的实用程......一起来看看 《C++数值算法(第二版)》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
正则表达式在线测试
正则表达式在线测试