我有基于WordPress的网站网址https://www.a2dweb.com/tech/顶部有一个滑块。前一天我将所有js和CSS合并到单个文件中,将它们与插件css和js优化器合并,之后我开始面临这个问题。 请有人帮忙。
答案 0 :(得分:0)
ID必须在文档中是唯一的,并且您要复制它们:
幻灯片:
<article id="post-7950" class="post-slider post-7950 post type-post status-publish format-standard has-post-thumbnail hentry category-tech-facts tag-amazon-ceo tag-amazon-share-price tag-bill-gates tag-bill-gates-net-worth tag-jeff-bezos-net-worth tag-microsoft tag-richest-man tag-richest-man-in-the-world tag-stock tag-the-worlds-billionaires tag-top-richest-people-in-the-world tag-who-is-the-richest-man-in-the-world tag-world-richest-man tag-worlds-richest-man">
幻灯片下方:
<article id="post-7950" class="post-grid post-7950 post type-post status-publish format-standard has-post-thumbnail hentry category-tech-facts tag-amazon-ceo tag-amazon-share-price tag-bill-gates tag-bill-gates-net-worth tag-jeff-bezos-net-worth tag-microsoft tag-richest-man tag-richest-man-in-the-world tag-stock tag-the-worlds-billionaires tag-top-richest-people-in-the-world tag-who-is-the-richest-man-in-the-world tag-world-richest-man tag-worlds-richest-man"><div class="grid-inner">
更改滑块中div的ID,可能类似于幻灯片 - ####