Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WordPress中小部件中的Javascript溢出_Javascript_Wordpress - Fatal编程技术网

WordPress中小部件中的Javascript溢出

WordPress中小部件中的Javascript溢出,javascript,wordpress,Javascript,Wordpress,我正在使用WordPress中的插件增强文本小部件在边栏小部件中显示Javascript。脚本运行并显示信息,但内容溢出到小部件区域之外。我想把内容限制在小部件区域的范围内,我尝试了一些不同的CSS选项,但没有任何东西能够包含它 网站是:它位于左侧边栏的每日燃烧信息下 谢谢 您的css需要调整 .burn类太宽,其宽度设置为固定的320px,而不是基于容器div(.textwidget)的宽度的动态: 尝试将其更改为: .burn { width: 100%;

我正在使用WordPress中的插件增强文本小部件在边栏小部件中显示Javascript。脚本运行并显示信息,但内容溢出到小部件区域之外。我想把内容限制在小部件区域的范围内,我尝试了一些不同的CSS选项,但没有任何东西能够包含它

网站是:它位于左侧边栏的每日燃烧信息下


谢谢

您的css需要调整

.burn类太宽,其宽度设置为固定的320px,而不是基于容器div(.textwidget)的宽度的动态:

尝试将其更改为:

    .burn {
        width: 100%;
        background: url(images/burn_status_bkgrd.png) center no-repeat;
        height: 250px;
    }

在您的样式中添加此代码。

Ah ok。脚本中有CSS吗?因为CSS不在网站内容中。很抱歉,我对脚本编写相当陌生,这个脚本不是我创建的。有没有办法用网站上的CSS覆盖脚本中的CSS?我用过!重要的是,这不起作用。它说,当我检查它在标签中-直接在burn div的上方-可能检查小部件源。#fa burn status display{text align:center;font size:12px;padding top:5px;}.burn{width:320px;background:url(images/burn_status_bkgrd.png)居中不重复;height:250px;}fa page view ag{背景色:#ccc;}.spatted ul ol margin top:1em;padding top:1em;列表样式位置:inside{页边距底部:1em;填充底部:1em;}
    .burn {
        width: 100%;
        background: url(images/burn_status_bkgrd.png) center no-repeat;
        height: 250px;
    }
.burn
{
width: auto !important;
}