图片滚动条坏了,Wordpress 主题

发布于 2024-11-03 01:12:13 字数 317 浏览 1 评论 0原文

我正在使用的主题有一个“针对精选帖子定制修改的 Nivo 滑块”。它运行得很好,直到今天下午,我注意到照片上的效果一直挥之不去,垂直线沿着它们向下延伸。我无法确定是什么引发了这种情况。我只在导航菜单中添加了几页。我没有安装任何插件,根本没有接触网站的样式或功能。

好奇是否有人以前见过这个并可以伸出援手。我很乐意粘贴您需要查看的任何代码。以下是该网站的链接: http://mefo1.ecin1prod1lnx1.com/

谨致问候,

Alex

The theme I am using has a "custom modified Nivo Slider for Featured posts." It was functioning perfectly until this afternoon when I noticed the effects are lingering on the photos with vertical lines running down them. I can't determine what set this off. I only added a few pages to the nav menu. I didn't install any plugins, touch the styling or functionality of the site at all.

Curious if anyone has seen this before and could lend a hand. I am happy to Paste Bin any of the code that you would need to see. Here is the link to the site: http://mefo1.ecin1prod1lnx1.com/

Best regards,

Alex

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷了相思 2024-11-10 01:12:13

图像的宽度必须能够除以切片数量而不留下任何分数。即,672 像素宽的图像可以分为 14 个切片(每个切片正好 48 像素),但不能分为 15 个切片(每个切片 44.8 像素)。非常适合我。
我在这里找到了解决方案: https://github.com/gilbitron/Nivo-Slider/issues /114

另外,请确保您的图像符合 css 中滑块图像的像素宽度。我下载了一个 css 设置为:的主题,

#slider {
    width:672px;
    height:374px !important;

但模板附带的图像具有不同的宽度,例如 670px 和 674px,以及不同的高度。所以我不得不将它们全部重新调整为 672x374px。

如果您同时执行此操作和上面的切片计算,那么应该没有问题。

The width of the image must be able to be divided by the number of slices without leaving any fractions. ie a 672 pixel wide image can be divided into 14 slices (of exactly 48 pixels each), but not by 15 slices (of 44.8pixels each). Worked perfectly for me.
I found the solution here: https://github.com/gilbitron/Nivo-Slider/issues/114

Also be sure that your images conform to the pixel width of the slider images in the css. I downloaded a theme with css set to:

#slider {
    width:672px;
    height:374px !important;

but the images that came with the template were of varying widths eg 670px and 674px as well as varying heights. So I had to readjust them all to the 672x374px.

If you do both this and the slice calculation above, you should have no problems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文