7杆显示 [英] 7-bar display
问题描述
我想显示带7条显示的数字,如口袋里的
计算器。
关于如何做到这一点的任何想法?
Francis
Hi,
I would like to display digits with a 7-bar display, as in a pocket
calculator.
Any ideas about how to do this?
Francis
推荐答案
2006年-10-30, vi**@systar.fr < vi ** @ systar.frwrote:
On 2006-10-30, vi**@systar.fr <vi**@systar.frwrote:
我想显示带7条显示的数字,如口袋里的
计算器。
关于如何做到这一点的任何想法?
Hi,
I would like to display digits with a 7-bar display, as in a pocket
calculator.
Any ideas about how to do this?
找到这样的字体?
或者你可以用CSS技巧和一些JS(如果你需要的话)来做更新
显示)。我会使用边框作为实际的条形。因为它们就像在袖珍计算器上一样(斜边)。
两个盒子一个在另一个的顶部,固定的和高度,并且相当
各方面都有厚厚的边框。在边框上切换边框颜色。
这里是2:
< head>
< style type =" text / css">
body
{
background-color:white;
}
div
{
宽度:200px;
身高:300px;
边框:50px纯黑色;
}
#top
{
border-left-颜色:白色;
border-bottom-width:25px;
}
#bottom
{
border-right-color:white;
border-top-width:25px;
}
< /风格>
< / head>
< body>
< div id =" top">< / div> ;
< div id =" bottom">< / div>
< / body>
也许使垂直条与
水平条稍微不同颜色看起来也不错。
Just find a font like that?
Or you could do it with CSS tricks and some JS (if you needed to update
the display). I would use borders for the actual "bars" since they are
mitred (diagonal edges) just like on a pocket calculator.
Two boxes one on top of the other, with fixed with and height, and quite
thick borders on all sides. Toggle border-color on the borders.
Here''s a 2:
<head>
<style type="text/css">
body
{
background-color: white;
}
div
{
width: 200px;
height: 300px;
border: 50px solid black;
}
#top
{
border-left-color: white;
border-bottom-width: 25px;
}
#bottom
{
border-right-color: white;
border-top-width: 25px;
}
</style>
</head>
<body>
<div id="top"></div>
<div id="bottom"></div>
</body>
Maybe making the vertical bars a slightly different colour from the
horizontal ones would look good too.
Ben C写道:
Ben C wrote:
2006-10-30, vi**@systar.fr < vi ** @ systar.frwrote:
On 2006-10-30, vi**@systar.fr <vi**@systar.frwrote:
我想用7-显示数字条形显示,如口袋里的
计算器。
有关如何操作的任何想法?
Hi,
I would like to display digits with a 7-bar display, as in a pocket
calculator.
Any ideas about how to do this?
找到这样的字体?
或者你可以用CSS技巧和一些JS(如果你需要的话)来做更新
显示)。我会使用边框作为实际的条形。因为它们就像在袖珍计算器上一样(斜边)。
两个盒子一个在另一个的顶部,固定的和高度,并且相当
各方面都有厚厚的边框。在边框上切换边框颜色。
这里是2:
< head>
< style type =" text / css">
body
{
background-color:white;
}
div
{
宽度:200px;
身高:300px;
边框:50px纯黑色;
}
#top
{
border-left-颜色:白色;
border-bottom-width:25px;
}
#bottom
{
border-right-color:white;
border-top-width:25px;
}
< /风格>
< / head>
< body>
< div id =" top">< / div> ;
< div id =" bottom">< / div>
&l t; / body>
也许使垂直条与
水平条略有不同颜色看起来也不错。
Just find a font like that?
Or you could do it with CSS tricks and some JS (if you needed to update
the display). I would use borders for the actual "bars" since they are
mitred (diagonal edges) just like on a pocket calculator.
Two boxes one on top of the other, with fixed with and height, and quite
thick borders on all sides. Toggle border-color on the borders.
Here''s a 2:
<head>
<style type="text/css">
body
{
background-color: white;
}
div
{
width: 200px;
height: 300px;
border: 50px solid black;
}
#top
{
border-left-color: white;
border-bottom-width: 25px;
}
#bottom
{
border-right-color: white;
border-top-width: 25px;
}
</style>
</head>
<body>
<div id="top"></div>
<div id="bottom"></div>
</body>
Maybe making the vertical bars a slightly different colour from the
horizontal ones would look good too.
感谢您的回复。
我担心div解决方案会变得复杂,因为我想显示
复数,如123,567.89。
也许字体解决方案最好。但我看到Windows中没有7-bar
的字体。有没有办法将字体无缝下载到用户的PC上?
Thank you for this reply.
I''m afraid the div solution would get complicated, as I want to display
complex numbers such as 123,567.89.
Maybe the font solution would be best. But I see no font for 7-bar
displays in Windows. Is there any way of seamlessly downloading a font
onto the user''s PC?
2006-10-30 , vi**@systar.fr < vi ** @ systar.frwrote:
On 2006-10-30, vi**@systar.fr <vi**@systar.frwrote:
>
Ben C写道:
>
Ben C wrote:
> 2006-10-30, vi ** @ systar.fr < vi ** @ systar.frwrote:
>On 2006-10-30, vi**@systar.fr <vi**@systar.frwrote:
我想显示带7条显示的数字,如口袋里的
计算器。
任何关于如何获取的想法做这个?
Hi,
I would like to display digits with a 7-bar display, as in a pocket
calculator.
Any ideas about how to do this?
只是找到这样的字体?
或者你可以用CSS技巧和一些JS(如果你需要更新显示屏)来做)。我会使用边框作为实际的条形。因为它们是像袖珍计算器一样的(斜边)。
Just find a font like that?
Or you could do it with CSS tricks and some JS (if you needed to update
the display). I would use borders for the actual "bars" since they are
mitred (diagonal edges) just like on a pocket calculator.
[snip]
[snip]
感谢您的回复。
我担心div解决方案会变得复杂,因为我想显示
复数,例如123,567.89。
也许字体解决方案最好。但我看到Windows中没有7-bar
的字体。有没有办法将字体
无缝下载到用户的PC上?
Thank you for this reply.
I''m afraid the div solution would get complicated, as I want to display
complex numbers such as 123,567.89.
Maybe the font solution would be best. But I see no font for 7-bar
displays in Windows. Is there any way of seamlessly downloading a font
onto the user''s PC?
我希望不是!
I hope not!
这篇关于7杆显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!