1个回答
展开全部
在布局页里添加以下代码。
<head>
<title>@ViewBag.Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="@ViewBag.Keywords" />
<meta name="description" content="@ViewBag.Description" />
@RenderSection("Head",false)
</head>
在每个页面添加以下代码
@{
ViewBag.Title = Model.webSetting.Title;
ViewBag.Keywords = Model.webSetting.Keywords;
ViewBag.Description = Model.webSetting.Description; ;
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head
{
<link href="/Content/css/index.css" rel="stylesheet" type="text/css" />
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询