星级评分jquery星级评分小部件和拆分星级的渲染错误

编程入门 行业动态 更新时间:2024-10-27 07:31:01
本文介绍了星级评分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页面所示,分为两半( orkans-tmp.22web/star_rating/#main-menu=2 )

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

2)他们希望获得标签6上的演示所示的大明星设计( orkans-tmp.22web/star_rating/#main-menu=3&demo-tabs=5 )

2) they want the big star design as seen in demo's on tab 6 (orkans-tmp.22web/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星级评分小部件和拆分星级的渲染错误

本文发布于:2023-11-25 01:28:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627755.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:星级   评分   部件   错误   jquery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!