如图:

原代码如下:

<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. Java设计模式(二) 观察者模式

    观察者模式: 定义了对象之间的一对多依赖,这样一来,当一个对象改变状态时,他的所有依赖者都会受到通知并自动更新. 1,定义事件源接口 package com.pattern.observer; pub ...

  2. 我的防Q+

    Q+链接:  http://onemore.web-45.com/index1.html: 兼容IE8: __页面被主机屋收回去了,现在又在弄自己的服务器,稍等呗

  3. LightOJ 1341 唯一分解定理

    Aladdin and the Flying Carpet Time Limit:3000MS     Memory Limit:32768KB     64bit IO Format:%lld &a ...

  4. Maven简单介绍

    Maven是基于项目对象模型,可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具. Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具.由于 Maven 的缺省构建规则 ...

  5. ThinkPHP 3.2 Token表单令牌

    /home/conf/config.php 中配置 'TOKEN_ON'=>true, 'TOKEN_NAME'=>'__hash__', 'TOKEN_TYPE'=>'md5', ...

  6. ubuntu优化使用

    1.开机程序设置 1.系统自带 Dash菜单中搜索gnome-session 2.安装扩展包 kamil@kamil-ThinkPad-X260:~$ sudo apt-get install rcc ...

  7. Leetcode Odd Even Linked List

    Given a singly linked list, group all odd nodes together followed by the even nodes. Please note her ...

  8. 【BZOJ-1367】sequence 可并堆+中位数

    1367: [Baltic2004]sequence Time Limit: 20 Sec  Memory Limit: 64 MBSubmit: 932  Solved: 348[Submit][S ...

  9. 如何利用SmartGit将一个已经写好的项目push到github

    首先在github上创建一个repository, 然后在SmartGit中 点击有上角的repository然后选择Add or Create...然后点击那个文件夹的图标之后选中自己的项目的问题件 ...

  10. MVC3项目依赖文件错误解决

    MVC3的项目依赖分为两大类: 1.ASP.NET Web Pages 2.ASP.NET MVC 3 如果没有正确引入,或者项目的版本有错误会出现程序集引用错误. 在服务器上部署时,解决思路如下: ...