我有一个report.master
<%@ Master Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewMasterPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<asp:ContentPlaceHolder ID="TitleContent" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBarContent" runat="server">
<h2>Select Report</h2>
<br />
<ul>
<li>
<h2>JobSorted</h2>
<ul style="text-align:left;">
<li><%: Html.ActionLink("JobSorted Report Data", "JobSortedReportData")%></li>
<li><%: Html.ActionLink("JobSorted Tradesmen Searches Data", "JobSortedTradesmenSearchesData")%></li>
<li><%: Html.ActionLink("JobSorted Signup Summary Report", "JobSortedSignups") %></li>
<li><%: Html.ActionLink("JobSorted Jobs Summary Report", "JobSortedJobs") %></li>
<%--<li><a href="#">Subscription Report</a></li>--%>
</ul>
<h2>TradeUK</h2>
<ul style="text-align:left;">
<li><%: Html.ActionLink("TradeUK KPI Searches Data", "TradeUKKPISearchesData")%></li>
<li><%: Html.ActionLink("TradeUK Job Searches Data", "TradeUKJobSearchesData")%></li>
<li><%: Html.ActionLink("Tradesman Signup Summary Report", "Index") %></li>
<li><%: Html.ActionLink("Websites Report", "TradeUKWebsitesData")%></li>
<li><%: Html.ActionLink("All Tradesman Counter Signup Summary Report", "AllTradesmenCodeRegistrations")%></li>
<li><%: Html.ActionLink("Tradesman Counter Signup Summary Report", "TradesmenCodeRegistrations")%></li>
</ul>
</li>
</ul>
</asp:Content>
那么在我看来,我有:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Report/Report.Master" Inherits="System.Web.Mvc.ViewPage<TradeUK.Admin.Web.ViewModels.KPIReportsViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
TradeUK KPI Searches Data
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<head>
<style type="text/css">
.instructions
{
line-height:normal;
}
</style>
</head>
<h2>TradeUK KPI Searches Data</h2>
<p>
<%: Html.ActionLink("Export as CSV...", "TradeUKKPIDataExport", "Report", new {@date = ViewBag.jobSortedReportDate }, 0)%>
</p>
</asp:Content>
我对 head 标签中的 style 标签有一个警告。我必须把这个放在哪里?我不明白?
谢谢