Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.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
Css 更改经过谷歌美化的文本的字体_Css_Angularjs_Templates_Fonts_Syntax Highlighting - Fatal编程技术网

Css 更改经过谷歌美化的文本的字体

Css 更改经过谷歌美化的文本的字体,css,angularjs,templates,fonts,syntax-highlighting,Css,Angularjs,Templates,Fonts,Syntax Highlighting,我正在尝试更改在angular指令中运行的某些文本的默认字体 我的指令提供的模板是这样的 <pre class= "prettyprint" style= "border:1px solid #98AFC7"> My Text </pre> pre.prettyprint{font-family:monospace; font-style: italic} 字体风格是为了让我自己确信事情确实是正确连接的。我的文本是斜体的,所以我会说它们是。但是,字体系列根本没

我正在尝试更改在angular指令中运行的某些文本的默认字体

我的指令提供的模板是这样的

<pre class= "prettyprint" style= "border:1px solid #98AFC7">
    My Text
</pre>
pre.prettyprint{font-family:monospace; font-style: italic}
字体风格是为了让我自己确信事情确实是正确连接的。我的文本是斜体的,所以我会说它们是。但是,字体系列根本没有被应用


有人知道如何正确地为这样的模板指定字体吗?

我现在发现,prettyPrintOne会将span标记插入到您提供的任何文本中。我还必须为span标记指定字体