The title says it all. I have a Style.css that apply properties to every <Table>
on every page. I have 1 SiteMap page, on which i don't want to apply CSS for <table>
. I tried this as a directive:
标题说明了一切。我有一个Style.css,它将属性应用于每个页面上的每个
@page :not(:last) { }
It didn't work, besides i had to apply on any specif page, not the last one.
它不起作用,除了我必须应用于任何指定页面,而不是最后一页。
Edited The table is auto-generating from XML file.
已编辑该表是从XML文件自动生成的。
Edited SiteMap.aspx
<asp:SiteMapDataSource ID="SiteMapDataSource1" Runat="server" />
<h3 id="Heading">SiteMap</h3>
<br /><br />
<asp:TreeView ID="TreeView1" Runat="Server" DataSourceID="SiteMapDataSource1" >
</asp:TreeView>
1 个解决方案
#1
2
Change your CSS to exclude the generated TreeView table, e.g.
更改CSS以排除生成的TreeView表,例如
table:not(#TreeView1) { ... }
#1
2
Change your CSS to exclude the generated TreeView table, e.g.
更改CSS以排除生成的TreeView表,例如
table:not(#TreeView1) { ... }