這是我原來的html:HtmlAgilityPack添加div元素,以現有的HTML文件
<tr>
<td style="padding-left: 40pt;"><font style="background-color: lightgreen" color="black">Tove</font></td>
<td style="padding-left: 40pt;"><font style="background-color: lightgreen" color="black">To</font></td>
</tr>
而我的目標是有這樣的:
<div class="select-me" /> <tr>...<tr/>
我使用HtmlAgilityPack並通過每個字體標籤基本上會並檢查它的風格是否爲淺綠色。但我不知道如何跳回表格行標籤並在表格行標籤周圍放置div標籤。
[環繞現有節點可能的複製與另一個節點與敏捷包](http://stackoverflow.com/questions/11540415/surround-existing-node-with-another-node-with-agility-pack) – farukdgn