0

我正在使用可以显示的日期和时间选择器['month', 'day', 'year','hour','minute','ampm']来源在这里:https://bitbucket.org/nilsdehl/sencha-touch-2-sencha.io-example/src/cb29bfa284b2/sdk/src/picker/Date.js?at=master

一切正常,但日期选择器不显示标题。这就是我想要的。它们显示在 html 页面上,但它们是 css 隐藏的。

例如,代码以这种方式在页面上生成月份:

<div class="x-unsized x-picker-slot-title x-dock-item x-docked-top x-has-width x-item-hidden" id="ext-component-268" style="display: none!important;">
  <div class="x-innerhtml " id="ext-element-712">Month</div>
</div>

如您所见,样式是 display: none!important;如何覆盖它?

我确信有一种方法可以通过更改 .js 文件中的某些选项来显示列名,而不是通过覆盖 css 样式。有人知道(类似于“ShowTitles”)选项吗?

无论如何,我没有运气找到这些方法来解决我的问题。

那么,如何去除style="display: none!important;" 呢?

4

1 回答 1

0

我找到了解决方案!添加一个字符串

useTitles: true,

config:{}.

于 2013-07-17T09:08:54.463 回答