角材料设计规范说,它使用54%的黑色作为表头。如何在CSS中设置它?
规范参考:http://www.google.com/design/spec/components/data-tables.html#data-tables-interaction
发布于 2015-07-16 05:49:01
参考: https://material.angularjs.org/latest/#/demo/material.components.toolbar
材料的角度正式文件的代码如下:

这里的54%是指由正式文档代码确认的文本的opacity。您可以使用以下方法在CSS中实现它:
.black-54 {
color: rgba(0, 0, 0, 0.54);
font-family: 'Roboto';
}<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<div class="black-54">I am 54% Black</div>
https://stackoverflow.com/questions/31445521
复制相似问题