日期:2014-05-16  浏览次数:20785 次

新手请教一下,
<div id="htmlcaption" class="nivo-html-caption">
<h1 ></h1>
<p></p>
</div>
<div id="htmlcaption-2" class="nivo-html-caption">
<h1></h1>
<p></p>
</div>
<div id="htmlcaption-3" class="nivo-html-caption">
<h1></h1>
<p>
</p>
</div>
<div id="htmlcaption-4" class="nivo-html-caption">
<h1></h1>
<p></p>
</div>
<div id="htmlcaption-5" class="nivo-html-caption">
<h1></h1>
<p></p>
</div>
这段代码是我从其他的网页中拷贝过来的,这是一段不停滚动图片上的文字介绍,请教一下,每个层的id是什么意思,我在所有的css文件和js文件中都搜索不到,

------解决方案--------------------
看看这两篇文章你就懂了!
http://www.w3school.com.cn/tags/tag_div.asp
http://jiongks.name/blog/html-or-id-or-class/

------解决方案--------------------
引用:
你搜一下  “htmlcap “这个呢?

id只是一个命名!命名成1,2,3,4应该是为了Js的实现方便而设计的!



那你把ID去掉 还有Js效果不?