资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

CSS实现左侧导航代码分享

这篇文章主要讲解了“CSS实现左侧导航代码分享”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“CSS实现左侧导航代码分享”吧!

创新互联建站专注于潼南网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供潼南营销型网站建设,潼南网站制作、潼南网页设计、潼南网站官网定制、小程序设计服务,打造潼南网络公司原创品牌,更为您提供潼南网站排名全网营销落地服务。

CSS实现左侧导航代码分享 

简单的左侧导航 代码如下:

代码如下:






测试










CSS如下:

代码如下:


/**
作者:小湉
网址:http://xtian.me
时间:2013-11
**/
/**清理边距**/
body,h2,h3,h4,h5,h6,h7,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td { margin:0px; padding:0px; }
/**默认字体**/
body,button,input,select,textarea { font:12px/1.5 宋体,arial,sans-serif; }
h2,h3,h4,h5,h6,h7 { font-size:100%; }
address,cite,dfn,em,var { font-style:normal; }
code,kbd,pre,samp { font-family:courier new,courier,monospace; }
small { font-size:12px; }
ul,ol,li { list-style:none; }
a { text-decoration:none; }
a:hvoer { text-decoration:underline; }
sup { vertical-align:text-top; }
sub { vertical-align:text-bottom; }
legend { color:#000; }
fieldset,img { border:0px; }
button,input,select,textarea{ font-size:100%; }
table { border-collapse:collapse; border-spacing:0; }
/**重置**/
.invisible { visibility:hidden; }
.noBg { background:none !important; }
.clear { display:block; height:0; overflow:hidden; clear:both; }
.clearfix:after { content:'\20'; display:block; height:0; clear:both; }
.clearfix { *zoom:1; }
/**页面样式**/
.hidden { display:none; }
.wmenu dt ,.wmenu dt a,.wmenu dd a:hover ,a.currcent {background:url(../images/w_base_z.png) no-repeat;}
.wmenu {height:500px;width:190px; border:1px solid #d1d1d1; background:#f3f3f3;}
.wmenu dl{border-bottom:1px solid #d1d1d1; }
.wmenu dt {height:41px;line-height:41px;border-bottom:1px solid #d1d1d1; text-align:left; background-position:153px -56px;}
.wmenu dt a{display:block; padding-left:48px; font-size:16px; color:#444343;}
.wmenu dt.user a{ background-position:18px -22px;}
.wmenu dt.edit a{ background-position:18px 12px;}
.icotop { border:none !important; background-position:153px -90px !important;}
.wmenu dd {line-height:37px;}
.wmenu dd a{display:block;padding-left:50px; font-size:14px; color:#362c30;}
.wmenu dd a:hover ,a.currcent{display:block;padding-left:50px; color:#fff !important;background-repeat:repeat-x;background-position:left bottom;}

感谢各位的阅读,以上就是“CSS实现左侧导航代码分享”的内容了,经过本文的学习后,相信大家对CSS实现左侧导航代码分享这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


网页标题:CSS实现左侧导航代码分享
标题URL:http://cdkjz.cn/article/ppshih.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220