我有以下div
<div class="timeline-axis-grid timeline-axis-grid-minor" style="position: absolute; width: 0px; top: 20px; height: 369px; left: 53.3095px;"></div>
Run Code Online (Sandbox Code Playgroud)
我想通过它的'left:53.3095px'值得到这个div并分配给Jquery中的变量
试试这个:
$('div.timeline-axis-grid').filter(function() {
return $(this).css('left') == '53.3095px';
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
89 次 |
| 最近记录: |