如何从HTML表中删除列 [英] How to delete column from HTML Table

查看:89
本文介绍了如何从HTML表中删除列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Windows应用程序中创建了一个html编辑器,用于显示HTML文件。现在,如果HTML文件包含表格,那么如何从中删除几列。我使用mshtml创建编辑器。

I have created an html editor in my windows application where I show HTML file. Now if the HTML file contains a table then how can I delete a few columns from it. I have used mshtml to create editor.

推荐答案

使用HTMLAgilityPack。有关文档,我建议使用Html Agility Pack解析HTML文档 [ ^ ]由4GuysFromRolla.com的Scott Mitchell撰写。
Use the HTMLAgilityPack. For documentation, I recommend Parsing HTML Documents with the Html Agility Pack[^] by Scott Mitchell of 4GuysFromRolla.com.


这篇关于如何从HTML表中删除列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆