Comments (9)
@lomo1 在组件对应的样式文件中用
:host ::ng-deep {
font-size:18px;
}
这种方式试试
from ng-zorro-antd.
windows底下特别小,mac底下还行。
from ng-zorro-antd.
define font-size in your css file to overwrite it.
from ng-zorro-antd.
在style.css里,通过定义body { font-size:14px },覆盖不了,是通过其它的什么方式?
from ng-zorro-antd.
style.css at the top of the page, it override by ng-zorro's style!
from ng-zorro-antd.
@liuliangjia 兄弟,我也遇到了,用的是Zorro 最新版0.6.x的。无论是在style.css
还是在组件对应的样式文件里修改,都不起作用。。请问你是怎么解决的呢
from ng-zorro-antd.
@dknfeiov thx, 我试了下,在单个组件的css里是可以的,但是我想调整整个body上的。我试了在style.css
里加或者在index.html
内敛都不行。又不想在每个组件的样式文件里加一遍,感觉挺繁琐的。
from ng-zorro-antd.
@lomo1
在style.scss 中定义mixin
在其他组件样式文件import ,稍微没那么繁琐
zorro 的样式,有时候是比较让人头疼的
from ng-zorro-antd.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
from ng-zorro-antd.
Related Issues (20)
- Ant-Design V5.X Sync HOT 1
- nz-table - pagination - Buttons do not have an accessible name
- <nz-slider> can not work with SSR
- nz-table use the filter function in the state of using the scrollbar, the filter popup window does not follow the scrolling
- 创建空白项目报错,未创建theme.less文件 HOT 2
- Autocomplete -> nz-auto-optgroup -> dont work with new angular control flow (@for) HOT 4
- ng add ng-zorro-antd 添加失败 HOT 4
- rate-component output rateLeave
- No pipe found with name 'nzHighlight' HOT 2
- rate-component value
- I can’t set the week to start from Monday in nz-range-picker nzMode="week"
- CSP not supported with nz-range-picker - it still has a div that has inline styles HOT 3
- table custom Column(自定义列)nzScroll HOT 5
- nzTreeNodePadding does not work in tree-view component HOT 10
- when changing the tabs in modal, the tab content comes from the page which is out of the modal HOT 3
- how to control the row numbers in view, when use nzVirtual? 虚拟滚动,如何控制默认显示多少行 HOT 4
- Make "noDateVirtualHeight" an input and fix spelling HOT 4
- Notification stacking function HOT 1
- 【nz-tree】在节点中的设置的checked值为true的节点不会被getCheckedNodeList()获取 HOT 3
- Virtual table column alignment issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-zorro-antd.