Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更改 html 表中 tr 标记的边框底部颜色,它使用 Itextsharp 转换 pdf。它无法正常工作。默认情况下,黑色会出现。任何人都可以建议我如何实现这个 uanig Itextsharp。
提前致谢。卡莱。
试试这个。
StyleSheet style = new StyleSheet(); style.LoadTagStyle("tr", "border-bottom-color", "Yellow"); objects = HTMLWorker.ParseToList(new StringReader("YOUR HTML"), style); for (int k = 0; k < objects.Count; ++k) { document.AddElement((IElement)objects[k]); }