Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 替换<;字体>;_C#_Html_Asp.net_Webforms_Visual Studio 2015 - Fatal编程技术网

C# 替换<;字体>;

C# 替换<;字体>;,c#,html,asp.net,webforms,visual-studio-2015,C#,Html,Asp.net,Webforms,Visual Studio 2015,我们终于从VisualStudio2005升级到VisualStudio2015,我发现HTML5不再支持标记。在Visual Studio 2005中,我将使用以下语法: <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <font>This is where you would enter text</font> </asp:Con

我们终于从
VisualStudio2005
升级到
VisualStudio2015
,我发现
HTML5
不再支持
标记。在Visual Studio 2005中,我将使用以下语法:

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <font>This is where you would enter text</font>
</asp:Content>

这是您输入文本的地方
但是,由于不再支持
标记,因此适当的替换方法是什么?是
还是
等?我用它来表示文本将在这两个标记之间输入,我使用
CSS
来满足任何其他格式需求,只需要知道我的
HTML
的相应更新标记就可以显示它了?

是您想要的-内联,“无演示文稿”标记将被视为与您的“无演示文稿”相同。
或类似的样式将是块布局,并附带一些默认样式。

是您想要的-一个内联的无演示文稿标记,它将被视为与无演示文稿相同的
或类似的布局将是块布局,并附带一些默认样式。

如果没有大小、面、颜色等属性,则毫无意义。因此,在您的示例中,只需删除标记。 如果您想实际设置文本样式,请使用CSS样式

.someclass {
    font-family: "Times New Roman", Georgia, Serif;
}
<span class="someclass">This is where you would enter text</span>
.someclass{
字体系列:“时代新罗马”,佐治亚州,衬线;
}
这是您输入文本的地方
如果没有大小、脸型、颜色等属性,则毫无意义。因此,在您的示例中,只需删除标记。 如果您想实际设置文本样式,请使用CSS样式

.someclass {
    font-family: "Times New Roman", Georgia, Serif;
}
<span class="someclass">This is where you would enter text</span>
.someclass{
字体系列:“时代新罗马”,佐治亚州,衬线;
}
这是您输入文本的地方