根据条件动态生成使用Angularjs之前/之后的CSS margin-top

时间:2016-01-06 20:19:39

标签: angularjs

在css中

 tooltip:after {
                width: 0;
                z-index: 1;
                margin-top: 147px;
                right: -13px;
                top: 15%;
            }

tooltip:before {
            width: 0;
            z-index: 1;
            margin-top: 147px;
            right: -13px;
            top: 15%;
        }

在cshtml中

<div class="tooltip" ng-mouseover="TitleHover()">

在基于某些条件的鼠标悬停事件中,我需要在AngularJS中的margin-top值之前/之后进行更改。

例如:根据条件,我想将margin-top值更改为margin-top:200。请协助。

0 个答案:

没有答案