本文介绍了最佳实践:如何在Django模板中最好地实现评级 - 明星的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要重复使用的评分(典型的布局与5颗星)。
我发现这个,解释了如何使用css显示这个。
为了真正收集评分,我正在考虑使用图像映射或者简单的单选按钮。
我想在各种不同的机型上使用。

I would like to have reusable ratings (typical layout with 5 stars).I have found this http://www.thebroth.com/blog/119/css-rating-stars that explains how to display this using css.For actually collecting the rating I was thinking of using an image map or maybe simple radio buttons.I would like to use this on various different models.

你会怎么做?
我要创建一个窗口小部件,还是可以使用模板?
其实我很惊讶,没有在网上找到任何东西。

How would you do this?Shall I create a widget or can I do this with a template?Actually I was pretty surprised not to find anything on this on the web. Is it that simple, or uncommon?

推荐答案

如果在:

由Mike :

by Ethan:

这篇关于最佳实践:如何在Django模板中最好地实现评级 - 明星的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 00:29