Html rgba颜色不透明? [英] Html rgba color opacity?

查看:279
本文介绍了Html rgba颜色不透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在HTML中使用RGBA时,我们使用sth这样。

 < div style =Background:rgba ,x,x,0.dd)>一些内容< / div> 

您可以在 dd (opacity)。它是浏览器依赖吗? TR / css3-color /#transparencyrel =nofollow>规范说它是一个< number> ,它是定义为


零个或多个数字后面跟着一个或多个数字的点(。)


因此,CSS规范中没有指定限制。



如果任何人眼可以区分超过两位小数,我会感到惊讶。


When we use RGBA in Html we use sth like this.

<div style="Background: rgba (x, x, x, 0.dd)">Some Content</div>

How many decimals can you go in the dd(opacity). Is it browser dependent? Or are its limits specified in HTML standards?

解决方案

The specification says it is a <number> which is defined as:

zero or more digits followed by a dot (.) followed by one or more digits

So there is no limit specified in the CSS spec.

I'd be surprised if any human eye could distinguish beyond two decimal places though.

这篇关于Html rgba颜色不透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆