Giter Site home page Giter Site logo

Comments (9)

dknfeiov avatar dknfeiov commented on May 8, 2024 1

@lomo1 在组件对应的样式文件中用
:host ::ng-deep {
font-size:18px;
}
这种方式试试

from ng-zorro-antd.

liuliangjia avatar liuliangjia commented on May 8, 2024

windows底下特别小,mac底下还行。

from ng-zorro-antd.

vthinkxie avatar vthinkxie commented on May 8, 2024

define font-size in your css file to overwrite it.

from ng-zorro-antd.

liuliangjia avatar liuliangjia commented on May 8, 2024

在style.css里,通过定义body { font-size:14px },覆盖不了,是通过其它的什么方式?

from ng-zorro-antd.

zhangkang1521 avatar zhangkang1521 commented on May 8, 2024

style.css at the top of the page, it override by ng-zorro's style!
image

from ng-zorro-antd.

lomo1 avatar lomo1 commented on May 8, 2024

@liuliangjia 兄弟,我也遇到了,用的是Zorro 最新版0.6.x的。无论是在style.css还是在组件对应的样式文件里修改,都不起作用。。请问你是怎么解决的呢

from ng-zorro-antd.

lomo1 avatar lomo1 commented on May 8, 2024

@dknfeiov thx, 我试了下,在单个组件的css里是可以的,但是我想调整整个body上的。我试了在style.css里加或者在index.html内敛都不行。又不想在每个组件的样式文件里加一遍,感觉挺繁琐的。

from ng-zorro-antd.

dknfeiov avatar dknfeiov commented on May 8, 2024

@lomo1
在style.scss 中定义mixin
在其他组件样式文件import ,稍微没那么繁琐
zorro 的样式,有时候是比较让人头疼的

from ng-zorro-antd.

lock avatar lock commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.