UI Grid CSS not working

馋奶兔 提交于 2019-12-22 08:10:10

问题


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

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.

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.

link for Images: http://postimg.org/image/omhlfs8nd/

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

ThankQ for your time.


回答1:


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.




回答2:


Adding to previous comments to download tff, svg and woff files: You need to download ui-grid.eot as well to get it perfect.



来源:https://stackoverflow.com/questions/29924891/ui-grid-css-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!