代码为: scan=new plus.barcode.Barcode('bcid');
scan.frameColor="#00b4ff"; //无效
scan.BarcodeStyles .frameColor="#00b4ff"; //无效
文档为:
interface plus.barcode.BarcodeStyles {
attribute String frameColor;
attribute String scanbarColor;
attribute String background;
}
属性:
frameColor: (String 类型 )扫描框颜色
颜色值支持(参考CSS颜色规范):颜色名称(参考CSS Color Names)/十六进制值/rgb值/rgba值,默认值为红色。
scanbarColor: (String 类型 )扫描条颜色
颜色值支持(参考CSS颜色规范):颜色名称(参考CSS Color Names)/十六进制值/rgb值/rgba值,默认值为红色。
background: (String 类型 )条码识别控件背景颜色
颜色值支持(参考CSS颜色规范):颜色名称(参考CSS Color Names)/十六进制值/rgb值,默认值为红色。
g***@163.com
你好,该方法很有效,只是为什么不能更改宽跟高呢?我想把扫码框放大一点怎么放大呢?
2018-10-18 11:09