本文介绍了条形码字体和NS / MOZ / Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 我用这个选择器定义了一个CSS: #IUPBarCode { font-family:" 3 9条码" ;; 字体大小:30px; 字体重量:正常; 位置:绝对值; top:150px; 剩余:22px; } 因为我希望用条形图打印预订的唯一标识符代码。 不幸的是,Mozilla和Firefox不能直观显示条形码,而是 字母字体类型。 IE和Opera工作正确。 非常感谢任何帮助, 感谢 EmanueleCalò - Emanuele Calo'' UI设计师 - 可用性/无障碍管理器 Svimservice Spa Dipartimento Applicazioni网页 Via Massaua,18 70123 Bari - 意大利 +39 - 80 - 5820813 em *********** @ svimservice.it www.svimservice.it 解决方案 Emanuele Calo''写道:我已经用这个选择器定义了一个CSS: #IUPBarCode { font-family:" 3 of 9条码" ;; font-size:30px; font-weight:normal; 位置:绝对; 顶部:150px; 左:22px; } 因为我希望用条形码打印预订的唯一标识符。不幸的是,Mozilla和Firefox不能看到条形码,但字母字体类型。 IE和Opera工作正常。 非常感谢任何帮助, 我从未听说过这种字体我非常怀疑很多人在他们的机器上安装了它。 从理论上讲,你可以使用@ font-face制作字体(参见 < http://www.w3.org/TR/CSS2/fonts.html#字体描述>),但我不认为认为这是广泛支持的。 此外,显示它不是一个好主意符号这样。阅读 < http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html>。 你的最安全的选择是创建一个条形码服务器端的图像。 当然,创建一个合适的ALT文本可能是个问题。 Matthias > Emanuele Calo''写道: 我已经用这个选择器定义了一个CSS: #IUPBarCode { font-family:" 3 of 9 Barcode"; font-size:30px; font-weight:normal; position:absolute; top:150px; left:22px; } 因为我希望用条形码打印预订的唯一标识符。不幸的是,Mozilla和Firefox不能看到条形码,但是字母字体类型。 IE和Opera工作正常。 非常感谢任何帮助, Matthias Gutfeldt: 我从来没有听说过那种字体,我很怀疑很多人已经把它安装在他们的机器上了。 理论上你可以使用@font来提供字体-face(参见< http://www.w3.org/TR/CSS2/fonts.html#font-descriptions>),但我不认为这得到了广泛的支持。 此外,以这种方式显示符号并不是一个好主意。阅读< http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html> 你最安全的赌注是创建一个条形码服务器端。当然,创建正确的ALT文本可能是个问题。 此页面在内联网中工作,其中字体为3 of 9条形码"所有客户都安装了 。 因此,我没有使用@ font-face的问题。 真正的问题是: 为什么上面定义的选择器可以正确地显示IE中的符号和 Opera, 而不是在Gecko浏览器中? 感谢您的回答 emanuele PS:请原谅我在您的电子邮件地址发送的帖子 2004年7月7日星期三,Emanuele Calo''写道: Matthias Gutfeldt: 此外,以这种方式显示符号并不是一个好主意。阅读< http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html>。此页面在内联网中工作,其中字体为3 9条形码 安装在所有客户端上。 然后它对于WWW组来说并不是真正的主题;但是有一个 的重要原则,这里也很重要。 真正的问题是: 不, - 真实问题是引用网址中描述的问题。 为什么上面定义的选择器可以正确地显示IE中的符号和 Opera, 错了 - 那些浏览器会做你想要的 - 并且 - 不是 - 你要求什么?b $ b for。 而不是Gecko浏览器? Gecko浏览器可以满足您的要求,这不是您想要的。 感谢您的回答 我认为你必须被建议使用用户定义的字符 编码。不幸的是,这也会导致一些问题,但它至少是b ,符合规范要求。我的页面说了些什么 更多关于此事。 Hi,I''ve defined a CSS with this selector:#IUPBarCode{font-family : "3 of 9 Barcode";font-size: 30px;font-weight : normal;position: absolute;top: 150px;left: 22px;}because I wish to print a booking''s unique identifier with bar code.Unfortunately, Mozilla and Firefox don''t visualize the bar code, but thealphabetic font type.IE and Opera work properly.Any help is greatly appreciated,thanksEmanuele Calò--Emanuele Calo''UI Designer - Usability/Accessibility ManagerSvimservice SpaDipartimento Applicazioni WebVia Massaua, 18 70123 Bari - Italy+39 - 80 - 5820813 em***********@svimservice.it www.svimservice.it 解决方案 Emanuele Calo'' wrote: Hi, I''ve defined a CSS with this selector: #IUPBarCode{ font-family : "3 of 9 Barcode"; font-size: 30px; font-weight : normal; position: absolute; top: 150px; left: 22px; } because I wish to print a booking''s unique identifier with bar code. Unfortunately, Mozilla and Firefox don''t visualize the bar code, but the alphabetic font type. IE and Opera work properly. Any help is greatly appreciated,I have never heard of that font, and I seriously doubt that many peoplehave it installed on their machine.Theoretically you could make the font available using @font-face (see<http://www.w3.org/TR/CSS2/fonts.html#font-descriptions>), but I don''tthink this is widely supported.Also, it''s not a good idea to display symbols this way. Read<http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html>.Your safest bet is to create an image of the bar code server-side.Creating a proper ALT text could be a problem, of course.Matthias > Emanuele Calo'' wrote: Hi, I''ve defined a CSS with this selector: #IUPBarCode{ font-family : "3 of 9 Barcode"; font-size: 30px; font-weight : normal; position: absolute; top: 150px; left: 22px; } because I wish to print a booking''s unique identifier with bar code. Unfortunately, Mozilla and Firefox don''t visualize the bar code, but the alphabetic font type. IE and Opera work properly. Any help is greatly appreciated,Matthias Gutfeldt: I have never heard of that font, and I seriously doubt that many people have it installed on their machine. Theoretically you could make the font available using @font-face (see <http://www.w3.org/TR/CSS2/fonts.html#font-descriptions>), but I don''t think this is widely supported. Also, it''s not a good idea to display symbols this way. Read <http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html>. Your safest bet is to create an image of the bar code server-side. Creating a proper ALT text could be a problem, of course.This page work within an intranet where the font "3 of 9 barcode" isinstalledon all clients.therefore, I don''t have the problem of using @font-face.The real problem is:why the selector defined above visualize properly the symbols in IE andOpera,and not in Gecko browsers?Thanks for your answeremanueleP.S: excuse me for the post sended at your email addressOn Wed, 7 Jul 2004, Emanuele Calo'' wrote: Matthias Gutfeldt: Also, it''s not a good idea to display symbols this way. Read <http://ppewww.ph.gla.ac.uk/~flavell/charset/fontface-harmful.html>. This page work within an intranet where the font "3 of 9 barcode" is installed on all clients.Then it''s not really on-topic for a WWW group; but there is animportant principle, which is relevant here too. The real problem is:No, the -real- problem is the one described at the cited URL. why the selector defined above visualize properly the symbols in IE and Opera,Wrong - those browsers do what you -want-, and -not- what you askedfor. and not in Gecko browsers?Gecko browsers do what you asked for, which is -not- what you want. Thanks for your answerI think you would have to be advised to use the user-defined charactercoding. Unfortunately this too causes some problems, but it is, atleast, tolerably specification-conforming. My page(s) say somethingmore about this. 这篇关于条形码字体和NS / MOZ / Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 21:29