Check a div has a particular style using Javascript/ JQuery -
i injecting html code every webpage before <body> tag using chrome extension content_script.js file before() method. adding margin-top:60px; body tag. displaying in header section websites problem other websites header stick. using position:fixed; css stick header.i need know if can identify div contains style css position:fixed; using javascript or jquery.
for getting value assigned particular css entry of element , compare it:
if ($('#yourelement').css('position') == 'fixed') { // true }
Comments
Post a Comment