javascript - stackable.js 表格背景颜色不起作用

标签 javascript php jquery html css

我有一张 table ,我想使用 stackable.js (http://johnpolacek.github.io/stacktable.js/) 来响应移动设备,我的 table 在数据类型的基础上有特定的背景颜色,所以在桌面上我的 table 工作正常,但是当减少size ,表格背景色消失:

本例中某行的红色背景在reduce时消失,如何在移动端实现此功能。

<table id="gestione_aree" class="tabella_prezzi">
                  <tr class="etichette bitsmall">
              <th width="50%">
                  <a href="/amministra/gestione_aree/index.php?ord=denominazione&desc=0#inizio_tabella" title="Ordina per NOME">nome</a>
              </th>............... continue on codepen

http://codepen.io/anon/pen/MwvJxa

最佳答案

因此该类从您的原始表中复制并添加到 stackable 创建的内容中。您必须将 background-color 应用于 CSS 文件中的表格类:

.tabella_prezzi { background-color: #ff0000; }

更新了您的代码笔:http://codepen.io/anon/pen/mJMWpY

关于javascript - stackable.js 表格背景颜色不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30850535/

相关文章:

php - 将 Magento 1.6.1 升级到 1.7.0 保存自定义模块

php - 强制 php strtotime 使用 UTC

javascript - 下拉列表不显示元素 Bootstrap 3

javascript - 从 html 获取 php 生成的 json

c# - 删除由 ClientScript.RegisterStartupScript 添加的脚本

javascript - 来自另一个组件的数据表更新

javascript - setInterval 和 setTimeout 不匹配

php - yii gridview 中基于三个表的关系显示

javascript - 如何控制动画滚动的速度?

javascript - React useState 与 webpack-dev-server 一起使用时未定义