admin管理员组

文章数量:1405918

i have just entered my website and all of the contect doesnt seems to appear, in the source there is an inline css style display:none in the html tag and the body tag... is there a way to track what does give this css property to the body and html tag, so i could remove it.. I tried Firebug plugin for Mozilla Firefox, but i cant find anything... The website is running on Wordpress here is the link /

i have just entered my website and all of the contect doesnt seems to appear, in the source there is an inline css style display:none in the html tag and the body tag... is there a way to track what does give this css property to the body and html tag, so i could remove it.. I tried Firebug plugin for Mozilla Firefox, but i cant find anything... The website is running on Wordpress here is the link http://p315468.for-test-only.ru/

Share Improve this question asked Jan 13, 2016 at 8:01 AlexandrAlexandr 1,0319 silver badges16 bronze badges 1
  • Please add enough code to the question to reproduce the issue and remove the link. Because when the link gets removed there is no further usability for future users. See the help page stackoverflow./help/mcve – Thaillie Commented Jan 13, 2016 at 8:07
Add a ment  | 

6 Answers 6

Reset to default 2

elements hidden with JQuery in (index):

$('html, body').hide()

just remark this line.

You can also try this

$(document).ready(function(e) {
    $('.classname').css('display','block');
});

or using Id

$(document).ready(function(e) {
    $('#ElementId').css('display','block');
});

If you want to track down what JavaScript is causing that issue and you are using Wordpress, the first thing you can turn to is deactivate all the plugins and reactivate it one after another to see which plugin is causing that issue.

$('#Element').css('display','');
$('#Element').css('display','block');

give a class to it and in jquery do

$( window ).load(function() {
  $(".classname").show();
});

The problem is you write inline css in your home page, so you need to remove dispaly:none; from your html and body tag from your home page

and it's working perfect.

本文标签: javascriptHow to remove quotdisplay nonequot from my html and body tagStack Overflow