Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.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#_.net_Asp.net Mvc_Bulletedlist - Fatal编程技术网

C# 不使用项目符号和编号渲染时的项目符号和编号列表

C# 不使用项目符号和编号渲染时的项目符号和编号列表,c#,.net,asp.net-mvc,bulletedlist,C#,.net,Asp.net Mvc,Bulletedlist,我正在绑定一个由列表和文本组成的解码html。但在OL LI/UL LI 标记: @HTML.Raw(httputlity.htmldecode(model.defn)) 解码后的定义值将为 <ol><li>test</li><li>test2</li></ol>Sample text 必须显示为 test test2 Sample Text 1. test 2. test2 Sample Text test2 浏览

我正在绑定一个由列表和文本组成的解码html。但在
OL LI/UL LI

标记:

@HTML.Raw(httputlity.htmldecode(model.defn))
解码后的定义值将为

<ol><li>test</li><li>test2</li></ol>Sample text
必须显示为

test
test2
Sample Text
1. test
2. test2
Sample Text
test2

浏览器通过解析
标记来呈现1、2和项目符号。它们不是HTML的一部分


不过我不太确定我是否理解你的问题

很简单,您必须为该OL标记编写CSS类

ol.yourOLCLASS
{
  list-style-type:number;
}