如何防止Blogger将主题样式应用于帖子中的HTML片段?
我习惯于设计代码的样式; 但是blogger重写代码颜色以匹配主题的颜色 例如:如何防止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
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;
}
}
}