我需要为定制折扣卡(使用http://www.barcodebakery.com/提供的php类)生成一些条形码。卡ID的一个例子是:3xxxxxxxxxxY (3 - first digit, x - 10 digits, Y-control digit)。在我的例子中,最好的条形码一维生成器方法是什么(但是如果这些卡将在不久的将来用于条形码扫描器)?
我对这项技术是新的,任何帮助/建议都会很好。
发布于 2014-01-21 14:48:44
我用js和css做了一个非常简单的解决方案。这是小提琴:http://jsfiddle.net/u7uPJ/1/
var div = Barcode(document.getElementById('eTeste').className.match(/barcode\-([A-Za-z0-9\-]+)/)[1], "code128",{barWidth:2, barHeight:50});使用PHP,您可以只打印数字代码。js将读取类名中的数字代码,并创建条形图。
https://stackoverflow.com/questions/19334486
复制相似问题