南希在HTML <head> </head>标签中添加了一些代码

时间:2019-07-08 14:22:52

标签: c# html nancy

我正在通过C#和Nancy创建表单,而不使用多余的myAnim.loop(false);文件。它通过我编写的.html方法创建html代码。在将html代码作为字符串获取后,我使用toHTML()。当我在浏览器上调查html代码时,这些代码将放入return Response.AsText(form.toHtml(), “text/html”);标记中。如果我需要输入以下内容怎么办?

<body>..</body>

如何将它们放入<meta charset=“utf-8”> <title>test</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> 标签中?

0 个答案:

没有答案
相关问题