【发布时间】:2020-11-04 13:51:51
【问题描述】:
我正在尝试根据浏览器语言应用SCSS。在检查时,我在 <html lang = "de"> 和 css html[Attributes Style] {-webkit-locale: "en";} 中获取浏览器语言,就像这样。
如何根据页面语言在不同的类上应用 CSS?
【问题讨论】:
标签: css angular typescript sass
我正在尝试根据浏览器语言应用SCSS。在检查时,我在 <html lang = "de"> 和 css html[Attributes Style] {-webkit-locale: "en";} 中获取浏览器语言,就像这样。
如何根据页面语言在不同的类上应用 CSS?
【问题讨论】:
标签: css angular typescript sass
你能试试这个技巧吗?
html[lang="de"] {
//your styles
}
【讨论】: