wrong rendering of star rating jquery star rating widget and split stars

北城余情 提交于 2019-12-25 02:55:09

问题


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) 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) 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)

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)


回答1:


Ok, i fixed this myself,

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

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



来源:https://stackoverflow.com/questions/3459358/wrong-rendering-of-star-rating-jquery-star-rating-widget-and-split-stars

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