在 asp.net webforms 项目中,我只需要将外部样式表添加到内容页面,
<%@ Page>
如果我在声明之后放置 css 链接,则会出现错误提示
Error 103 Validation (XHTML 1.0 Transitional): Content is not supported outside 'script' or 'asp:content' regions.
如果我把它放在<asp:Content>
标签内,错误是
Error 104 Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'link' cannot be nested within element 'td'.
是否可以仅将样式表添加到内容页面?