星级评分jquery星级评分小部件和拆分星级的渲染错误 [英] wrong rendering of star rating jquery star rating widget and split stars

查看:77
本文介绍了星级评分jquery星级评分小部件和拆分星级的渲染错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我们的下一个项目中使用了jquery star小部件,过去它在其他项目中都可以正常工作,现在可以了,但是客户要求针对这两个事实:

i'm using the jquery star widget in our next project, it worked fine for other projects in the past, now it works, but the client has requested specific for these 2 facts:

1)小部件需要5星,如网站上的api 2页面所示,分为两半(

1) the widget needs 5 stars, split in half as seen on the api 2 page on the website (http://orkans-tmp.22web.net/star_rating/#main-menu=2)

2)他们希望获得标签6上的演示所示的大明星设计(

2) they want the big star design as seen in demo's on tab 6 (http://orkans-tmp.22web.net/star_rating/#main-menu=3&demo-tabs=5)

现在,结合使用2(大星号CSS和半星号选项({split:2}) Lahout乱码了...看来插件给元素提供了8px的宽度 使用jQuery,为什么不能在css中处理呢?以及如何在不更改插件本身的情况下解决该问题(以确保将来进行更新时使其安全)

now, upon combining the 2, (big star css, and half star option ({split:2}) the lahout is garbled... it seems like the plugin is giving an 8px width to the elements with jquery, why is this not handled in the css? and how can i solve it without changing the plugin itself (to keep it safe when future updates are done)

推荐答案

好的,我自己修复了这个问题,

Ok, i fixed this myself,

我已经覆盖了默认的CSS,因此符合我们自己的设计.

i have overwritten the default css so it fits our own design.

必须将星星的空间从8像素增加到16像素.

had to make the space for stars bigger, from 8 to 16px.

这篇关于星级评分jquery星级评分小部件和拆分星级的渲染错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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