美文网首页
家用电器分类

家用电器分类

作者: Tn299 | 来源:发表于2019-04-06 21:26 被阅读0次

要求

(1) .电器分类无下划线,鼠标悬浮超链接时显示下划线。
(2) .分类内容超链无下划线,鼠标悬浮至超链接时字体颜色为棕红色(#F60),显示下划线。
实现效果


image.png

代码

<title>家用电器分类</title>
<link href="家电.css" rel="stylesheet" type="text/css">
</head>

<body>
  <div>
    <div class="bt">家用电器</div>
    <div class="xbt">大家电</div>
    <div>
      <a href="#">平板电视</a>
      <a href="#">洗衣机</a>
      <a href="#">冰箱</a><br/>
      <a href="#">空调</a>
      <a href="#">烟机/灶具</a>
      <a href="#">热水器</a><br/>
      <a href="#"> 冷柜/酒柜</a>
      <a href="#"> 消毒柜</a>
      <a href="#"> 家庭影院</a>
    </div>
  </div>
</body>

css代码

.bt
{
    font-size:18px;
    font-weight:bold;
    background-color:#0f7cbf;
    text-indent:1em;
    line-height:35px;    
    color:#FFF;}
.xbt
{
    font-size:14px;
    font-weight:bold;
    line-height:30px;
    background-color:#e4f1fa;
    color:#0f7cbf;}
a:hover
{
    color:#F60;
    text-decoration:underline;}
a {
    font-size:12px;
    line-height:20px;
    color:#666666;
    text-decoration:none;}

效果图

image.png

就做了一块

div标签和p标签分不清。

相关文章

网友评论

      本文标题:家用电器分类

      本文链接:https://www.haomeiwen.com/subject/vjediqtx.html