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 选项标签的样式,但没有成功。我发布的代码如下:
String htmlString = <something inline styled>; $("#nombreFuenteLB > option[value^='" + "Helvetica" + "']").replaceWith(htmlString);
但是没有什么好处,有什么想法吗?
提前致谢,
在选择任何内容之前,您必须将元素附加到文档中,您应该测试选择是否返回某些内容。Proly 您的过滤器不匹配任何元素。