移动网页模块化样式模板匹配方法
Modular Style Template Matching Method for Mobile Webpages
摘要: 针对传统的基于模板的Web页面移动端适配方法中无法处理过于复杂的页面问题,本文提出了一种基于模块化样式模板匹配的混合式适配方法。该方法首先对构成网页的页面块进行归类,并对每一类设计适合在移动端浏览的样式,然后对网页分割后的页面块进行类型识别,最后将识别后的页面块与对应的模块化样式相关联,进而完成页面转换。实验结果表明,本文方法仅需少量模板即可应对多种风格的页面,并解决了因分割造成的页面样式的丢失问题。
Abstract: Aiming at the problem that the traditional template-based methods for webpage mobile adaptation cannot deal with too complex pages, this paper proposes a new hybrid matching method based on modular style templates. It first categorizes the page blocks that make up webpages, designs the styles suitable for browsing on the mobile terminal for each type of page blocks, then identifies the type of the page block after webpage segmentation, and finally associates the determined page blocks with the corresponding modular styles to complete the page conversion. Experimental results show that the presented method only needs a small number of templates to process different pages and solves the problem of page style loss caused by segmentation.
文章引用:张胜男, 吴嘉惟, 牛连强, 杨坤. 移动网页模块化样式模板匹配方法[J]. 计算机科学与应用, 2020, 10(6): 1234-1242. https://doi.org/10.12677/CSA.2020.106127

参考文献

[1] 中国互联网络信息中心. 第44次中国互联网络发展状况统计报告[EB/OL]. http://www.cnnic.net.cn, 2019-08.
[2] 文星. 基于移动终端适配技术的网站页面信息显示方法[J]. 自动化与仪器仪表, 2019(12): 126-129.
[3] 马倩. 基于下一代Web技术的移动网页模板匹配的设计与实现[D]: [硕士学位论文]. 北京: 北京邮电大学, 2015.
[4] 任胜兵, 王志健, 王宇. Web页面自动化设计中布局挖掘和样式匹配算法[J]. 计算机工程与应用, 2018, 54(3): 227-232.
[5] 王宪发, 郭岩, 刘悦, 等. 基于视觉特征的网页信息抽取方法研究[J]. 中文信息学报, 2019, 33(5): 103-112.
[6] Zeleny, J., Burget, R. and Zendulka, J. (2017) Box Clustering Segmentation: A New Method for Vision-Based Web Page Preprocessing. Information Processing & Management, 53, 735-750. [Google Scholar] [CrossRef
[7] 李进生, 乐惠骁, 童名文. 基于标题机器学习的网页分割方法[J]. 计算机科学, 2018, 45(S1): 583-587.
[8] 彭红超, 童名文. 基于规则的网页分割预处理算法研究[J]. 计算机科学, 2013, 40(11A): 379-388.
[9] 韦佳佳. 基于HTML5语义化标签的Web文本提取技术[J]. 贵阳学院学报: 自然科学版, 2017, 12(3): 25-28.
[10] 杨坤. Web信息系统的微信平台迁移技术研究[D]: [硕士学位论文]. 沈阳: 沈阳工业大学, 2017.