这个网站中上部有四个图片,在鼠标入上去时就能变,但其上还有文字。
如果光是画片能变,我知道用mouseover,mouseout就可以,但现在在画片上还有文字(不是放在画片中的那种),
大家帮我看看,谢谢了。网站是:http://live.chuguo.tv/hqywork
如果光是画片能变,我知道用mouseover,mouseout就可以,但现在在画片上还有文字(不是放在画片中的那种),
大家帮我看看,谢谢了。网站是:http://live.chuguo.tv/hqywork
解决方案 »
- TextBox1的TextChanged事件触发的怪现象?
- Form标签
- 关于RadioButtonList控件
- 女程序员的问题
- asp.net模板if标签
- 怎樣設定可以使asp.net頁面不會顯示IE的Toolbar?
- ASP.NET中把数据库中的数据写入指定位置Word当中
- 显示文章列表中两个Repeater嵌套,但有的文章是直接添加在父级目录,而非子目录,所以关系不仅仅是父子关系,还可能是父父关系
- 急急急!!!请问如何用c#(asp.net)中做一个当主页打开时弹出的广告小窗口!
- 简单问题1。多选列表框2。列表框变化
- gridview问题
- 类似MSDN Online 帮助系统的B/S 帮助框架
用 A 标签就可以实现因为 a 有鼠标移如移出的样式
A 标签用背景图、字就是那么写在里面的那些块是 A 标签 display:block 的结果
然后再 a:hover 状态时改变背景图,和更换文字颜色
不懂自己看看 http://www.chuguo.tv/css/index.css这种东西csdn 就有好多处
一定都被 DW 带的那个切变按钮给误导了!
<li onmouseover="show('show_title')" onmouseout="hide('show_title')"><a href='http://www.chuguo.tv/LanguageLearn/TeacherTeamPage.aspx?Id=11'target='_blank'><img src='/Upload/images/ChuGuoIndex/bea5dea3-3c06-4f37-baeb-6e57dc5af513.gif' width='126' height='95' border='0' /></a><div id='show_title' style='position: absolute; display: none; background-color: #fff;color: #0096ff; filter: alpha(Opacity=80); width: 126px; left: 0px; top: 0px;z-index: 100'>汇通资深教师—唐冬青</div></li>
<li onmouseover="show('show_title')" onmouseout="hide('show_title')">
<a href='http://www.chuguo.tv/LanguageLearn/TeacherTeamPage.aspx?Id=11'target='_blank'>
<img src='/Upload/images/ChuGuoIndex/bea5dea3-3c06-4f37-baeb-6e57dc5af513.gif' width='126' height='95' border='0' />
</a>
<div id='show_title' style='position: absolute; display: none; background-color: #fff;color: #0096ff; filter: alpha(Opacity=80); width: 126px; left: 0px; top: 0px;z-index: 100'>
汇通资深教师—唐冬青
</div>
</li>
http://www.chuguo.tv/css/index.css加上这些就好了!
<style type="text/css">
.video_bg{ float:left; position:relative; margin-left:3px; width:432px; height:350px; background: url(../images/index-pic/video-bg.gif) no-repeat;}
.video_title{ position:absolute; top:5px; left:40px;}
.video_pic{ position:absolute; width:420px; top:35px; left:22px;}
.video_pic li{ float:left; position:relative; margin-right:5px; margin-bottom:4px;}
</style>
.index_block4{ position:relative; margin-top:1px; padding-top:15px; height:200px; background: url(../images/index-pic/block4-bg.gif) repeat-x; }
.index_block4 li{ float:left; margin-left:3px; width:188px; height:191px;}
.index_block4 li a{ display:block; width:188px; height:191px; text-indent:-7777px;}
.block4_1 a{ background: url(../images/index-pic/block1-1.jpg) no-repeat; }
.block4_1 a:hover{ background: url(../images/index-pic/block1.gif) no-repeat; }.block4_2 a{ background: url(../images/index-pic/block2-1.jpg) no-repeat; }
.block4_2 a:hover{ background: url(../images/index-pic/block2.gif) no-repeat; }.block4_3 a{ background: url(../images/index-pic/block3-1.jpg) no-repeat; }
.block4_3 a:hover{ background: url(../images/index-pic/block3.gif) no-repeat; }.block4_4 a{ background: url(../images/index-pic/block4-1.jpg) no-repeat; }
.block4_4 a:hover{ background: url(../images/index-pic/block4.gif) no-repeat; }
这就是 那四块 变色 block 的 css ...
不懂就研究下别人的源代码
很明显是div做的嘛