Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.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
如何防止Blogger将主题样式应用于帖子中的HTML片段?_Html_Css_Blogger - Fatal编程技术网

如何防止Blogger将主题样式应用于帖子中的HTML片段?

如何防止Blogger将主题样式应用于帖子中的HTML片段?,html,css,blogger,Html,Css,Blogger,我习惯于设计代码的样式; 但是blogger重写代码颜色以匹配主题的颜色 例如: 1 2. 3. 4. 5. 6. 7. 8. 9 10 11 12 13 14使用Xamarin.表格; 命名空间ExpertSpartner.Controls { 公共类CustomLabel:标签 { 公共自定义标签() { TextColor=(Color)Application.Current.Resources[“TextColor”]; FontFamily=(OnPlatformstring)App

我习惯于设计代码的样式; 但是blogger重写代码颜色以匹配主题的颜色

例如:

1
2.
3.
4.
5.
6.
7.
8.
9
10
11
12
13
14使用Xamarin.表格;
命名空间ExpertSpartner.Controls
{
公共类CustomLabel:标签
{
公共自定义标签()
{
TextColor=(Color)Application.Current.Resources[“TextColor”];
FontFamily=(OnPlatformstring)Application.Current.Resources[“TextFont”];
字体大小=14;
}
}
}

您的css正在工作,这是第一个没有颜色样式的包装标签

编辑:我觉得我应该澄清这一点:您可以通过inspector(开发工具)转到计算值,并找到它从中继承值的规则。 如我所回答的,在那里更改继承的规则或使用新的规则/内联规则来适当地覆盖样式

<pre style="margin: 0; line-height: 125%;color:black;">

1
2.
3.
4.
5.
6.
7.
8.
9
10
11
12
13
14使用Xamarin.表格;
命名空间ExpertSpartner.Controls
{
公共类CustomLabel:标签
{
公共自定义标签()
{
TextColor=(Color)Application.Current.Resources[“TextColor”];
FontFamily=(OnPlatformstring)Application.Current.Resources[“TextFont”];
字体大小=14;
}
}
}

您的css正在工作,这是第一个没有颜色样式的包装标签

编辑:我觉得我应该澄清这一点:您可以通过inspector(开发工具)转到计算值,并找到它从中继承值的规则。 如我所回答的,在那里更改继承的规则或使用新的规则/内联规则来适当地覆盖样式

<pre style="margin: 0; line-height: 125%;color:black;">

1
2.
3.
4.
5.
6.
7.
8.
9
10
11
12
13
14使用Xamarin.表格;
命名空间ExpertSpartner.Controls
{
公共类CustomLabel:标签
{
公共自定义标签()
{
TextColor=(Color)Application.Current.Resources[“TextColor”];
FontFamily=(OnPlatformstring)Application.Current.Resources[“TextFont”];
字体大小=14;
}
}
}