[已解决问题] 求教一些编辑贴子时代码的问题
提问者: 雪域暖阳 - Q芽二级  [收藏]
悬赏沪元:30 浏览 705 次
隐藏展开功能的代码,在一篇BLOG文章里不能用两次吗?
我想隐藏展开两首歌的歌词,分成两段,弄来弄去都出错,隐藏的东西无法展开出来,删掉一个后,另一个就正常了。
还有隐藏展开功能最原始的代码是什么样的呀?
前几天问过相关问题,CC给我的代码里各种修饰有些多,想要最原始的。
还有那个虚线框的代码是什么?

呃。。。是不是问题太多了OTL,谢谢大家!
最佳答案
这个是两个的,其实把那个id换个别的名字就可以用多个了。
这是代码:

<SPAN class="Outline" id=Out3 style="CURSOR: hand;COLOR: #A52A2A;background-color: #EBEBEB;font-size:14.7px">■点击查看■</SPAN><div id="Out3details" style="DISPLAY: none; background-color: #EBEBEB;POSITION: relative;">  内容文字
<SPAN class="Outline" id=Out3 style="CURSOR: hand;COLOR: #A52A2A;font-size:12px">■隐藏■</SPAN></div>

<br /><br />

<SPAN class="Outline" id=Out5 style="CURSOR: hand;COLOR: #A52A2A;background-color: #EBEBEB;font-size:14.7px">■点击查看■</SPAN><div id="Out5details" style="DISPLAY: none; background-color: #EBEBEB;POSITION: relative;">  内容文字
<SPAN class="Outline" id=Out5 style="CURSOR: hand;COLOR: #A52A2A;font-size:12px">■隐藏■</SPAN></div>

虚线框:

<div style="border:dashed 1px #cccccc;margin-left:10px; padding:15px 20px 15px 20px;width:560px;font-size:14px;line-height:160%;">
相关内容文字
</div>

更多代码参考:http://blog.hjenglish.com/homlee/archive/2005/02/28/17815.aspx
2006-10-3 11:01:42 回答者:homlee


提问者对于答案的评价:原来要改id呀,知道了,谢谢!:)
评论
   您需要登录以后才能回答!

我的问题    我要提问


相关链接

快到期问题