如图:

原代码如下:

<div class="allMerchan bgnone">
<h2 class="ttlm_category">查看所有商品类目</h2>
<ul>
<li class="clearfix">
<h3><a href="category.php?id=1" title="女装">女装</a></h3>
<p>
<a href="category.php?id=5" title="女装">短袖</a>|
<a href="category.php?id=10" title="女装">新品女装</a>|
<a href="category.php?id=15" title="女装">短袖POLO</a>|
<a href="category.php?id=20" title="女装">性感丝袜</a>|
<a href="category.php?id=25" title="女装">短袖T恤</a>|
<a href="category.php?id=30" title="女装">打底裤</a>|
<a href="category.php?id=417" title="女装">裙装</a>|
<a href="category.php?id=418" title="女装">衬衫</a>|
</p>
</li>
<li class="clearfix">
<h3><a href="category.php?id=2" title="数码">数码</a></h3>
<p>
<a href="category.php?id=42" title="数码">手机</a>|
<a href="category.php?id=47" title="数码">数码相机</a>|
<a href="category.php?id=53" title="数码">笔记本</a>|
<a href="category.php?id=58" title="数码">电脑配件</a>|
<a href="category.php?id=64" title="数码">办公</a>|
<a href="category.php?id=69" title="数码">MP4</a>|
<a href="category.php?id=430" title="数码">MP3</a>|
</p>
</li>
<li class="clearfix">
<h3><a href="category.php?id=3" title="文体">文体</a></h3>
<p>
<a href="category.php?id=73" title="文体">户外</a>|
<a href="category.php?id=78" title="文体">运动</a>|
<a href="category.php?id=82" title="文体">玩具</a>|
<a href="category.php?id=87" title="文体">书籍</a>|
<a href="category.php?id=92" title="文体">收藏</a>|
<a href="category.php?id=97" title="文体">宠物</a>|
<a href="category.php?id=427" title="文体">乐器</a>|
<a href="category.php?id=428" title="文体">汽车用具</a>|
</p>
</li>
<li class="clearfix">
<h3><a href="category.php?id=401" title="配饰">配饰</a></h3>
<p>
<a href="category.php?id=412" title="配饰">领带</a>|
<a href="category.php?id=413" title="配饰">围巾</a>|
<a href="category.php?id=414" title="配饰">男款皮带</a>|
<a href="category.php?id=415" title="配饰">女款皮带</a>|
<a href="category.php?id=423" title="配饰">女包</a>|
<a href="category.php?id=424" title="配饰">项链</a>|
<a href="category.php?id=425" title="配饰">钻戒</a>|
</p>
</li>
<li class="clearfix">
<h3><a href="category.php?id=402" title="家居">家居</a></h3>
<p>
<a href="category.php?id=403" title="家居">厨房用品</a>|
<a href="category.php?id=404" title="家居">浴室用品</a>|
<a href="category.php?id=405" title="家居">卧室用品</a>|
<a href="category.php?id=406" title="家居">收纳用品</a>|
<a href="category.php?id=407" title="家居">户外旅行</a>|
<a href="category.php?id=416" title="家居">雪尼尔布垫</a>|
<a href="category.php?id=421" title="家居">床品套装</a>|
<a href="category.php?id=422" title="家居">浴帘</a>|
</p>
</li>
</ul>
</div>

框架代码:

<div class="allMerchan bgnone">
<h2 class="ttlm_category">查看所有商品类目</h2>
<ul>
<li>
<h3><a>女装</a></h3>
<p><a>短袖</a></p>
<p><a>新品女装</a></p>
</li>
<li>
<h3><a>数码</a></h3>
<p><a>手机</a></p>
<p><a>数码相机</a></p>
</li>
</ul> </div>

商城常用css分类代码的更多相关文章

  1. discuz内置常用CSS代码分析

    CSS多IE下兼容HACK写法 所有 IE浏览器适用:.ie_all .foo { ... } IE6 专用:.ie6 .foo { ... } IE7 专用:.ie7 .foo { ... } IE ...

  2. 常用css属性记录

    CSS常用属性: 字体属性:(font)大小 font-size: x-large;(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX.PD样式 font-style: ...

  3. CSS 分类 (Classification)

    ★★CSS 分类属性 (Classification)★★ ⑴CSS 分类属性允许你控制如何显示元素,设置图像显示于另一元素中的何处,相对于其正常位置来定位元素,使用绝对值来定位元素,以及元素的可见度 ...

  4. 根据判断PC浏览器类型和手机屏幕像素自动调用不同CSS的代码

    1.媒体查询方法在 css 里面这样写 -------------------- @media screen and (min-width: 320px) and (max-width: 480px) ...

  5. 常用 Java 静态代码分析工具的分析与比较

    常用 Java 静态代码分析工具的分析与比较 简介: 本文首先介绍了静态代码分析的基 本概念及主要技术,随后分别介绍了现有 4 种主流 Java 静态代码分析工具 (Checkstyle,FindBu ...

  6. 十五个常用的jquery代码段【转】

    好的文章顶一个 回到顶部按钮 通过使用 jQuery 中的 animate 和 scrollTop 方法,你无需插件便可创建一个简单地回到顶部动画: 1 // Back to top 2 $('a.t ...

  7. 十五个常用的jquery代码段

    十五个常用的jquery代码段 回到顶部按钮 通过使用 jQuery 中的 animate 和 scrollTop 方法,你无需插件便可创建一个简单地回到顶部动画: 1 // Back to top ...

  8. CSS Hack汇总快查(CSS兼容代码演示)

    文章出处和来源网址:http://www.divcss5.com/css-hack/c284.shtml 以下是常用CSS HACK问题及解决代码-DIV+CSS网支持 1.屏蔽IE浏览器(也就是IE ...

  9. css初始化代码方案

    (从已经死了一次又一次终于挂掉的百度空间人工抢救出来的,发表日期 2014-06-24) 为了消除各浏览器对css默认的设置,保持网页在各浏览器中的外观保持一致,初始化css就显得非常必要了!很多时候 ...

随机推荐

  1. 【BZOJ 1007】【HNOI 2008】水平可见直线 解析几何

    之前机房没网就做的这道题,用的解析几何判断交点横坐标 #include<cmath> #include<cstdio> #include<cstring> #inc ...

  2. Input checkbox 添加样式背景

    <style type="text/css"> .chk_1 { width: 20px; height: 20px; position: absolute; top: ...

  3. UML中几种类间关系:继承、实现、依赖、关联、聚合、组合的联系与区别

    继承 指的是一个类(称为子类.子接口)继承另外的一个类(称为父类.父接口)的功能,并可以增加它自己的新功能的能力,继承是类与类或者接口与接口之间最常见的关系:在Java中此类关系通过关键字extend ...

  4. 【POJ 3062】Party(2-SAT、tarjan)

    2-SAT的入门题. a,a',b,b'分别表示两对夫妇,如果a,b有矛盾,那么a要来,就只能来b',b要来,就只能来a'.于是建了两条边(a,b'),(b,a'). 用tarjan强连通分量缩点染色 ...

  5. 关于 UINavigationController 的一些知识

    1.在 UINavigationController 中,添加一个UITextView,虽然设置self.frame = textView.bounds(从0.0开始),但是系统会自动设置一个cont ...

  6. 转:如何用EXCEL表运用FV函数

    转:http://zhidao.baidu.com/link?url=lKFCYBW-zMC-pp8GkFXZnmwQf3YL_csYLGo-0v2OAASSZwjw40QRgEO0V8s2Y3zCJ ...

  7. js-JavaScript高级程序设计学习笔记13

    第十五章 canvas绘图 1.WebGL是针对Canvas的3D上下文. 2.类型化数组 WebGL涉及的复杂计算需要提前知道数值的精度,而标准的JS数值无法满足需求.因此WebGL引入了一个概念, ...

  8. 在VS里配置及查看IL

    在VS里配置及查看IL 来源:网络 编辑:admin 在之前的版本VS2010中,在Tools下有IL Disassembler(IL中间语言查看器),但是我想直接集成在VS2012里使用,方法如下: ...

  9. SPOJ GSS4 Can you answer these queries IV

    Time Limit: 500MS   Memory Limit: 1572864KB   64bit IO Format: %lld & %llu Description You are g ...

  10. CVE-2015-1328 Ubuntu 12.04, 14.04, 14.10, 15.04 overlayfs Local Root

    catalog . 引言 . Description . Effected Scope . Exploit Analysis . Principle Of Vulnerability . Patch ...