给文字加一个& ltb & gt标签,然后设置& ltb & gt标签的样式就可以了,如果换成& ltp & gt标签,显示会出一点小问题
代码如下:
-
& lt;!DOCTYPE html & gt
& lthtml & gt
& lthead & gt
& ltmeta http-equiv = " Content-Type " Content = " text/html;charset=utf8" />
& ltstyle type="text/css " >body { font-size:12px;}
a { color:# 111;文字-装饰:无;}
a:hover { color:# F11;}/*主菜单伪类*/
# menu { width:111 px;边框:1px纯色# ccc} # menu ul { list-style:none;边距:1px填充:1px}
# menu ul li {背景:# eee填充:1px高度:26px行高:26px/*字体在上下边框的剧中位置*/border-bottom:1px solid # CCC;位置:相对;}
# menu ul Li ul { display:none;/*隐藏此UL*/位置:绝对;左:111pxtop:1px;宽度:111px边框:1px纯色# ccc边框-底部:无;}
#菜单ul Li:hover ul { display:block;}/*ul li下的保险商实验所显示*/
/*修改了这里* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# menu ul Li ul b { color:# ff 1111 }
/*修改了这里* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
& lt;/style & gt;
& lt/head & gt;
& ltbody & gt
& ltdiv id = " menu " & gt
& ltul & gt
& lt李& gt& lta href = " @ # " & gt首页& lt/a & gt;
& lt李& gt& lta href = " # " & gt网页版式布局& lt/a & gt;
& ltul & gt
& lt李& gt& lta href = " # " & gt& ltb & gt自适应宽度& lt/b & gt;& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt固定宽度& lt/a & gt;& lt/李& gt
& lt/ul & gt;
& lt/李& gt
& lt李& gt& lta href = " # " & gtdiv+css教程& lt/a & gt;
& ltul & gt
& lt李& gt& lta href = " # " & gt新手入门& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt视频教程& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt常见问题& lt/a & gt;& lt/李& gt
& lt/ul & gt;
& lt/李& gt
& lt李& gt& lta href = " # " & gtdiv+css实例& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt常用代码& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt站长杂谈& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt技术文档& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt资源下载& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt图片素材& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt常用代码& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt站长杂谈& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt技术文档& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt资源下载& lt/a & gt;& lt/李& gt
& lt李& gt& lta href = " # " & gt图片素材& lt/a & gt;& lt/李& gt
& lt/ul & gt;
& lt/div & gt;
& lt/body & gt;
& lt/html & gt;
I'm looking for one with good value for money and private rooms.