在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
。请协助。