NG Zorro与我们开发人员的普通CSS样式

发布于 2025-01-27 09:10:28 字数 207 浏览 2 评论 0原文

我们在项目中使用了ngzorro(角第三方材料)。该项目几乎已经完成。我们面临定制样式的一些问题。管理层询问我们是否可以使用普通CSS继续使用NG Zorro或样式。

有人可以在这一点上建议哪个好?遵循Ngzorro或使用自己的CSS设计。

到目前为止,我的项目已经完成了Ngzorro。我的项目涉及各种形式和图表。另外,请告诉我使用角材料而不是使用普通CSS样式的缺点。

We are using ngzorro (angular third party material) in our project. The project is almost halfway through. We face some issues in customizing styles. Management asking whether we can continue with ng zorro or style using normal CSS.

Can anyone please suggest at this point which is good? Following ngzorro or designing using your own CSS.

My project is completely done so far using ngzorro. My project involves various forms and charts. Also please tell me the drawbacks of using angular materials instead of styling using normal CSS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月流歌 2025-02-03 09:10:28

我试图遵循我可以的Ngzorro风格。在某些情况下,需要:

  • 启用和禁用元素的文本颜色的
  • 启用和禁用元素的背景颜色
  • 宽度和高度
  • 边距以及填充
  • 自己的图标和文本

我应用了一些自己的CSS规则。

与往常一样,这取决于您项目的复杂性和设计。关于我的经验,我记得应用自己的CSS规则很容易完成,而不是耗时。

关于缺点...
使用Angular材料设计并定义您自己的CSS课程并不是矛盾。多亏了Angular材料,这是朋友,我不承担重新发明轮子的压力。经过深思熟虑,虽然我自己的CSS需要进行很多开发阶段才能自我进行。我宁愿扩展所需的给定设计。

I tried to follow the style of ngZorro where I could. In some cases where it was needed like:

  • text color of enabled and disabled elements
  • background color of enabled and disabled elements
  • width and height
  • margin and padding
  • own icons and text

I applied some own css rules.

As always it depends on the complexity of your project and given design. Regarding my experience I remember that applying your my own CSS rules was easy to accomplish and not that time consuming.

Regarding the drawbacks...
Using angular material design and defining you're own css classes is no contradiction. Thanks to angular material and it's friends I'm not in the pressure of reinventing the wheel. It's well thought out and went though a lot of dev stages my own CSS would need to go it self. I rather like to extend the given design where it is needed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文