作业帮 > 综合 > 作业

dl dt dd宽度的问题

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/14 02:37:51
dl dt dd宽度的问题
#help{height:194px;padding:5px 0;clear:both;}
#help dl{width:150px;float:left;padding:5px 10px;}
#help dt{height:25px;width:150px;text-indent:-2000px;}
#help dt.cpzhongxin{background:url(/images/bg_top_foot.png) -365px -170px no-repeat;_background:url(/images/bg_top_foot.gif) -365px -170px no-repeat;}
#help dt.zixun{background:url(/images/bg_top_foot.png) -365px -192px no-repeat;_background:url(/images/bg_top_foot.gif) -365px -192px no-repeat;}
#help dt.support{background:url(/images/bg_top_foot.png) -365px -214px no-repeat;_background:url(/images/bg_top_foot.gif) -365px -214px no-repeat;}
#help dt.guanyu{background:url(/images/bg_top_foot.png) -365px -236px no-repeat;_background:url(/images/bg_top_foot.gif) -365px -236px no-repeat;}
#help dd{height:20px;line-height:20px;overflow:hidden;}
#help dd a{padding:0 10px;display:block;text-decoration:none;background:url(/images/jiantou.gif) 0 6px no-repeat;color:#d2fcff;}
#help dd a:hover{text-decoration:underline;}
#help dd #help dd a #help dd a:hover 都没有设置宽度问题,为什么鼠标放上去,有链接的地方还是宽度为150px;就是显示手标的地方的宽度
我是想要:鼠标放上去 只是让文字显示鼠标的标志,其他地方不显示,现在那段代码不是的,鼠标放上去 整个的都显示手的标志,而不是只是文字的区域,
/></dt> <dd class="f_right"> dd </dd> </dl> </div> <div 标签在有尺寸的情况下,上下左右默认都有2个像素的margin,所以总宽度就超过