search

Home  >  Q&A  >  body text

angular.js - How to modify the css style of the controller's js file in angular, such as margin: 0?

How to modify the margin of js files in angular?

曾经蜡笔没有小新曾经蜡笔没有小新2792 days ago620

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 17:12:10

    It is recommended that you take a look at the two instructions ng-class and ng-style.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-15 17:12:10

    Try to use ng-class to set styles. Let style issues stay in the css and html files as much as possible. Of course, you can also directly use angular.element() to obtain a jQuery-like object. You will know the next steps

    reply
    0
  • Cancelreply