当我在这里输入时: -
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<link href="Skins/SkinCustom/Editor.Default.css" rel="stylesheet" type="text/css" />
</asp:Content>
Run Code Online (Sandbox Code Playgroud)
它说Element Link不能嵌套在div中......我应该如何链接我的css文件?
bla*_*bla 10
在主head标记中添加ContentPlaceHolder :
<head>
<asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder>
</head>
Run Code Online (Sandbox Code Playgroud)
然后在您的内容页面中:
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="Skins/SkinCustom/Editor.Default.css" rel="stylesheet" type="text/css" />
</asp:Content>
Run Code Online (Sandbox Code Playgroud)