在ASP.NET MVC 3 razor视图中,我有代码:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@media print
{
table { page-break-inside:auto; width: 100%; }
tr { page-break-inside:avoid; page-break-after:auto }
thead { display:table-header-group }
tfoot { display:table-footer-group }
}
</style>
</head>
<body>
<table>
但是我收到了错误:
The name 'media' does not exist in the current context.
感谢。