首页 | 官方网站   微博 | 高级检索  
     

用CSS技术实现成绩统计图表
引用本文:周剑强.用CSS技术实现成绩统计图表[J].山西电子技术,2011(5):66-68.
作者姓名:周剑强
作者单位:忻州职业技术学院;
摘    要:在学校类网站中有时会用到成绩统计图表,外形类似于EXCEL中的条状图。这种图表一般都是用图形处理软件制作好后再插入到网页当中,所以图表都是固定的、一次性的,下次考试后的图表必须重新制作,使用起来比较烦琐、死板。随着CSS技术在网站中越来越多的应用,我们发现使用它也可以制作灵活美观的图表。CSS2.0中,可以使用百分比来定义对象的高度和宽度,利用这一特性,我们可以很方便地借用一个容器的高度或宽度来形象地表现一个数值。以这种原理制作的图表数据是可变的,改变对象的高度或宽度参数值就相当于改变了它所代表的数据,而无须重新制作图片,减少了网页设计师的工作量。

关 键 词:图表  CSS  定位

Realization of the Achievement Statistical Chart with CSS Technology
Zhou Jian-qiang.Realization of the Achievement Statistical Chart with CSS Technology[J].Shanxi Electronic Technology,2011(5):66-68.
Authors:Zhou Jian-qiang
Affiliation:Zhou Jian-qiang(Xinzhou Vocational and Technical College,Xinzhou Shanxi 034000,China)
Abstract:Sometimes,achievement statistical chart is used in school website.Its shape is similar to the bar graph in EXCEL.Generally,these charts are created by the graphics treatment software,and then inserted into the web page.Therefore,the chart is fixed,and they must be redone after the next examination.This method is cumbersome and inflexible.With the popularizing of CSS technology,the people find that it can be used to create the flexible chart.In CSS2.0,it can use percentages to define the object's height and ...
Keywords:chart  CSS  location  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号