The present invention discloses an interactive method and system device for displaying a long table vertically at the mobile end. The method includes: a height acquisition module gets the display height of the display end; the table container module receives the display height sent by the height acquisition module to create a table container; the table container module traverses the document in the document. There is a table and height of the table and table; the table container module loads the table; the table container module generates spillover parts based on the height of the table and the height of the table container; the hidden module receives the spilled parts of the table sent by the table container, and hides the spilled part of the table. By calculating the height of the screen and table, the invention concealed the overflow part of the long form by default, and the complete style and button were not displayed at the bottom, and the Overflow Hidden was cancelled by the user clicking the corresponding button to display the full form of the table. This can solve the influence of long form on full-text reading, and it is simple and convenient to operate. One
【技术实现步骤摘要】
一种在移动端纵向展示长表格的交互方法及系统装置
本专利技术涉及一种移动终端中长表格的显示技术,尤其是涉及手机或平板移动终端的用于显示浏览页面中长表格的显示方法及系统装置。
技术介绍
通常上市公司发布的公告是pdf格式文档,为了在H5中能有较好的阅读体验,业界一般会通过后台将原始pdf转成html,前端再通过CSS样式来控制页面布局,字体等样式。但公告中通常还含有大量表格,由于移动端设备的屏幕高度的局限,导致内容过长的表格通常占满很多屏,如果所述表格用户无需阅览,则用户需要长时或多次操作,跳过所述表格,从而影响全文的正常阅读体验。另外,现有技术中的移动终端也有部分隐藏的功能,但主要是对整个文档的部分内容进行隐藏,或者是对文档中的表格设计一个操作窗口,在此窗口中可以通过窗口纵横边的滑块对窗口内的表格进行选取、阅读,因为移动终端本身可视范围有一定局限性,其操作窗口的可视范围更加局限,用户在此条件下如果想对某个表格进行详细阅读,其操作体验差强人意。其具体存在的技术问题为,无法专门针对表格实现自动隐藏及展开。
技术实现思路
为解决上述技术中存在的技术问题,本专利技术提供了一种在移动端纵向展示长表格的交互方法及系统装置,可在表格容器中对所述表格进行隐藏及展开。其具体方案如下:第一方面,一种在移动端纵向展示长表格的交互方法,所述方法包括:高度获取模块获取显示端的显示高度;表格容器模块接收所述高度获取模块发送的所述显示高度创建表格容器;表格容器模块遍历文档中的所有表格并获取所述表格及表格高度;表格容器模块加载所述表格;表格容器模块根据所述表格高度及所述表格容器高度,生成表格溢 ...
【技术保护点】
1.一种在移动端纵向展示长表格的交互方法,其特征在于,所述方法包括:
【技术特征摘要】
1.一种在移动端纵向展示长表格的交互方法,其特征在于,所述方法包括:高度获取模块获取显示端的显示高度;表格容器模块接收所述高度获取模块发送的所述显示高度创建表格容器;表格容器模块遍历文档中的所有表格并获取所述表格及表格高度;表格容器模块加载所述表格;表格容器模块根据所述表格高度及所述表格容器高度,生成表格溢出部分;隐藏模块接收所述表格容器发送的所述表格溢出部分,隐藏所述表格溢出部分。2.根据权利要求1所述的一种在移动端纵向展示长表格的交互方法,其特征在于,所述显示端的显示高度为可显示区域的高度。3.根据权利要求1所述的一种在移动端纵向展示长表格的交互方法,其特征在于,所述表格容器模块获取所述表格高度及所述表格容器高度,从所述表格的顶部开始计算,未超出所述表格容器高度的部分加载至表格容器中;超出所述表格容器高度的部分生成为表格溢出部分。4.根据权利要求1所述的一种在移动端纵向展示长表格的交互方法,其特征在于,所述隐藏模块获取所述表格溢出部分,根据所述表格溢出部分创建隐藏容器,所述隐藏容器加载表格溢出部分,隐藏表格溢...
【专利技术属性】
技术研发人员:卢鼎,
申请(专利权)人:武汉楚鼎信息技术有限公司,
类型:发明
国别省市:湖北,42
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。