jtable(jquery)缺少对话框格式 [英] jtable (jquery) missing dialog format

查看:87
本文介绍了jtable(jquery)缺少对话框格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据 GettingStarted 上的文档创建jquery jtable。

I'm trying to create jquery jtable according to documentation at GettingStarted.

每次打开对话框时,都会缺少整个格式/对话框样式。我仍然可以看到文字和按钮是链接,但它看起来很糟糕。

Everytime a dialog is opened, the entire format/dialog style is missing. I can still see the text and the buttons are links instead, but it looks pretty crappy.

感觉我错过了一些非常微不足道的东西,但我似乎无法忍受找出答案。

It feels like I'm missing something really trivial but I can't seem to find out what.

我已经尝试过这里您可以在其中看到缺少的样式(与 GettingStarted 中的几个对话框相比)。

I've tried it out here where you can see the missing style (compared to the several dialogs at GettingStarted).

我正在使用 jquery-1.7.2.min.js jquery-ui-1.8.23.custom.min.js (还在 jquery-ui.js 结果相同)。

I'm using jquery-1.7.2.min.js and jquery-ui-1.8.23.custom.min.js (have also tried CDN version at jquery-ui.js with same result).

编辑:此处没有故意实施的逻辑。我知道添加记录不起作用,但样式仍应显示对话框。

EDIT: There are no logic implemented on purpose here. I'm aware that adding records isn't working, but the style should still show dialogs.

推荐答案

如果您查看它正在导入的 jtable.css 的源代码:

If you look in the source code of jtable.css it's importing:

@import '../jtable_lightcolor_base.css';

文件是否存在于您的目录结构中?如果没有,那么这可能是导致问题的原因。

Does the file exist in your directory structure? If not, then that's probably what's causing the issue.

更新

dialog格式是jQuery UI的一部分,你没有包含jQuery UI CSS

The dialog format is part of jQuery UI and you have not included the jQuery UI CSS

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css" type="text/css" rel="stylesheet" />

这篇关于jtable(jquery)缺少对话框格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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