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
6 Answers
Reset to default 2elements 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
版权声明:本文标题:javascript - How to remove "display: none" from my html and body tag - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744935985a2633188.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论