Heim  >  Artikel  >  Web-Frontend  >  新手请教一下,_html/css_WEB-ITnose

新手请教一下,_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:221018Durchsuche






















这段代码是我从其他的网页中拷贝过来的,这是一段不停滚动图片上的文字介绍,请教一下,每个层的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的实现方便而设计的!

你搜一下  “htmlcap “这个呢?

id只是一个命名!命名成1,2,3,4应该是为了Js的实现方便而设计的!
在百度搜索过,出现的事html的caption属性,

你搜一下  “htmlcap “这个呢?

id只是一个命名!命名成1,2,3,4应该是为了Js的实现方便而设计的!
可是这几个名称在js文件里面也搜索不到?

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

我觉得这几个名称应该是层的样式,可是在样式表中,和在js文件中都搜索不到,

你搜一下  “htmlcap “这个呢?

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


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

我把代码复制过来以后,一直就没有js效果,原网页的效果是随着图片的更换,介绍内容也更换,现在什么都没有,也不显示文字,这个样式是这么写的,
.nivo-html-caption {
    display: none;
}
如果将属性值换成别的,文字就全部显示在网页上,没有特效,静止不动的,

刚才把 id="htmlcaption"去掉后,图片也不显示了,

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn