UI 网格 CSS 不起作用 [英] UI Grid CSS not working

查看:40
本文介绍了UI 网格 CSS 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 UI 网格(ngGrid 的最新版本)创建网格,该网格是不稳定版本并已集成到我当前的项目中.

I tried to create a grid using UI grid (Recent version of ngGrid) which is unstable version and integrated in my current project.

它没有根据需要正确显示(图标角度向下和行选择的图标)在项目中包含 CSS 文件(通过下载文件并上传)时,它给了我如下所示的显示错误.

It is Not correctly displaying the (icon angle down and row selected icon) as needed While including the CSS file in project (by downloading the file and uploading) its giving me display errors as shown below.

但是,如果我直接在我的项目中提供 CSS 文件的网址...它显示正确.

But, if i directly give the web url for CSS file in my project...it is displaying correctly.

//web url: 
<link rel="stylesheet" href="http://ui-grid.info/release/ui-grid-unstable.css" type="text/css">

//my url
<link href="~/Scripts/ui-grid-unstable.css" rel="stylesheet" />

我不想依赖网址来显示...是否有任何我可以实施的解决方案.

I don't want to depend on web URL to display...is there any solution that I can implement on my side.

请参考使用网页链接前后的图片.

Please refer the image for before and after using web link.

图片链接:http://postimg.org/image/omhlfs8nd/

最上面的一个是它应该如何,最下面的一个解释了我的显示错误.

The top one is how it's supposed to and the bottom one explains my display error.

感谢您抽出宝贵时间.

推荐答案

这是一个简单的错误.确保您的 css 文件夹中有来自 ui-grid 下载的 ttf、woff 和 svg 文件.从你的代码来看,你应该把它放在 ~/Scripts/文件夹下.

This is a simple error. Make sure you have the ttf,woff and svg files from the ui-grid download in your css folder. From you code, you should have it under ~/Scripts/ folder.

这篇关于UI 网格 CSS 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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