样式 css 动态生成?
Style css dynamically generated?
我有这个网站:
http://avocat.dac-proiect.ro/wp
本站页脚出现黑色谁要删除
为了解决这个问题我需要改变这行代码的高度
<div style="position: relative; height: 126px;" id="footer-sidebar" class="footer-sidebar widget-area masonry" role="complementary"
我的问题是找不到要编辑的文件...我到处找
我们在 footer.php 中找到了相同的时间和地点告诉此代码 ...
这是代码footer.php
<div id="supplementary">
<div id="footer-sidebar" class="footer-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- #footer-sidebar -->
找到2825行CSS代码但无法改变高度:
.site-footer {
background-color: #000;
font-size: 12px;
position: fixed;
z-index: 3;
bottom:0px;
width:100%;
}
这些都是目前可用的信息......你能帮我解决这个问题吗?
提前致谢!
如果你只是想摆脱黑色部分,只需更改线路
background-color: #000;
至
background-color: transparent;
您可以使用快速脚本来完成:
<script>
document.addEventListener('DOMContentLoaded', updateAttribute);
function updateAttribute() {
document.getElementById('footer-sidebar').setAttribute('style','position:relative;');
}
</script>
这将删除动态添加的 height:126px;
部分。
或
在CSS代码中设置高度:
.site-footer {
background-color: #000;
font-size: 12px;
position: fixed;
z-index: 3;
bottom:0px;
width:100%;
height:0 !important;
}
我有这个网站:
http://avocat.dac-proiect.ro/wp
本站页脚出现黑色谁要删除
为了解决这个问题我需要改变这行代码的高度
<div style="position: relative; height: 126px;" id="footer-sidebar" class="footer-sidebar widget-area masonry" role="complementary"
我的问题是找不到要编辑的文件...我到处找
我们在 footer.php 中找到了相同的时间和地点告诉此代码 ...
这是代码footer.php
<div id="supplementary">
<div id="footer-sidebar" class="footer-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- #footer-sidebar -->
找到2825行CSS代码但无法改变高度:
.site-footer {
background-color: #000;
font-size: 12px;
position: fixed;
z-index: 3;
bottom:0px;
width:100%;
}
这些都是目前可用的信息......你能帮我解决这个问题吗?
提前致谢!
如果你只是想摆脱黑色部分,只需更改线路
background-color: #000;
至
background-color: transparent;
您可以使用快速脚本来完成:
<script>
document.addEventListener('DOMContentLoaded', updateAttribute);
function updateAttribute() {
document.getElementById('footer-sidebar').setAttribute('style','position:relative;');
}
</script>
这将删除动态添加的 height:126px;
部分。
或
在CSS代码中设置高度:
.site-footer {
background-color: #000;
font-size: 12px;
position: fixed;
z-index: 3;
bottom:0px;
width:100%;
height:0 !important;
}