如何使用类来描述表中的数据? [英] How to use classes to describe data in the table?

查看:105
本文介绍了如何使用类来描述表中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不同颜色的同一个表中对不同的类变量进行虚拟化。如何在样式表中描述这个?


例如,我现在使用的样式表将两个类都用红色着色。我希望第30天是蓝色,第1天是红色。

展开 | 选择 | Wrap < span class =codeDivider> | 行号

解决方案

< blockquote>从第30天开始给第1天一个不同的类。


将它添加到你的CSS中,

展开 | 选择 | Wrap | 行号


我给了不同的类,但这不起作用。实际上我有一个桌面日历。我想要上课主要。蓝色和类nextmonth用红色。我不知道如何在css中使用带有表的类。

展开 | 选择 | Wrap | 行号


I would like to vizualize different class variables in the same table in different colors. How to describe this in stylesheet?

For example, the stylesheet which i use now colors both classes in red. I want that day 30 would be blue and day 1 would be red.

Expand|Select|Wrap|Line Numbers

解决方案

Give day 1 a different class from day 30.


add this to your css,

Expand|Select|Wrap|Line Numbers


i gave different class, but this does not work. In reality i have a table-calendar. I would like to color class "mainmonth" with blue and class "nextmonth" with red. I do not know how to use class with table in css.

Expand|Select|Wrap|Line Numbers


这篇关于如何使用类来描述表中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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