<legend id='wKgSV'><style id='wKgSV'><dir id='wKgSV'><q id='wKgSV'></q></dir></style></legend>

        <bdo id='wKgSV'></bdo><ul id='wKgSV'></ul>
    1. <i id='wKgSV'><tr id='wKgSV'><dt id='wKgSV'><q id='wKgSV'><span id='wKgSV'><b id='wKgSV'><form id='wKgSV'><ins id='wKgSV'></ins><ul id='wKgSV'></ul><sub id='wKgSV'></sub></form><legend id='wKgSV'></legend><bdo id='wKgSV'><pre id='wKgSV'><center id='wKgSV'></center></pre></bdo></b><th id='wKgSV'></th></span></q></dt></tr></i><div id='wKgSV'><tfoot id='wKgSV'></tfoot><dl id='wKgSV'><fieldset id='wKgSV'></fieldset></dl></div>

    2. <small id='wKgSV'></small><noframes id='wKgSV'>

    3. <tfoot id='wKgSV'></tfoot>
      1. div 悬停背景颜色变化?

        div hover background-color change?(div 悬停背景颜色变化?)
        <legend id='UwaA5'><style id='UwaA5'><dir id='UwaA5'><q id='UwaA5'></q></dir></style></legend>

          1. <tfoot id='UwaA5'></tfoot>

                <bdo id='UwaA5'></bdo><ul id='UwaA5'></ul>

                <small id='UwaA5'></small><noframes id='UwaA5'>

                <i id='UwaA5'><tr id='UwaA5'><dt id='UwaA5'><q id='UwaA5'><span id='UwaA5'><b id='UwaA5'><form id='UwaA5'><ins id='UwaA5'></ins><ul id='UwaA5'></ul><sub id='UwaA5'></sub></form><legend id='UwaA5'></legend><bdo id='UwaA5'><pre id='UwaA5'><center id='UwaA5'></center></pre></bdo></b><th id='UwaA5'></th></span></q></dt></tr></i><div id='UwaA5'><tfoot id='UwaA5'></tfoot><dl id='UwaA5'><fieldset id='UwaA5'></fieldset></dl></div>
                    <tbody id='UwaA5'></tbody>
                  本文介绍了div 悬停背景颜色变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我怎样才能让它表现得好像一行 div 是锚点,所以当我将鼠标悬停在它上面时它会返回红色

                  CSS

                  .e{宽度:90 像素;右边框:1px 实心 #222;文本对齐:居中;向左飘浮;填充左:2px;光标:指针;}.f.e{背景颜色:#F9EDBE;}

                  HTML

                  <div class="e" >公司</div><div class="e">目标</div><div class="e" style="border-right:0px;">人</div></div><div 类="f"><div class="e">公司</div><div class="e">目标</div><div class="e" style="border-right:0px;">人</div></div>

                  <div class="e">公司</div><div class="e">Targetaaa</div><div class="e" style="border-right:0px;">人</div></div><div 类="f"><div class="e">公司</div><div class="e">目标</div><div class="e" style="border-right:0px;">人</div></div>

                  解决方案

                  .e:hover{背景颜色:#FF0000;}

                  How can I make it act as if a line of div is anchor so when I hover on it it returns to red

                  CSS

                  .e
                  {
                      width:90px;
                      border-right:1px solid #222;
                      text-align:center;
                      float:left;
                      padding-left:2px;
                      cursor:pointer;
                  
                  
                  }
                  .f .e
                  {
                      background-color:#F9EDBE;
                  
                  }
                  

                  HTML

                  <div>
                      <div class="e" >Company</div>
                      <div class="e">Target</div>
                      <div class="e" style="border-right:0px;">Person</div>
                  </div>         
                  <div class="f">
                      <div class="e">Company</div>
                      <div class="e">Target</div>
                      <div class="e" style="border-right:0px;">Person</div>
                  </div>   
                  <div>
                      <div class="e">Company</div>
                      <div class="e">Targetaaa</div>
                      <div class="e" style="border-right:0px;">Person</div>
                  </div>            
                  <div class="f"> 
                      <div class="e">Company</div>
                      <div class="e">Target</div>
                      <div class="e" style="border-right:0px;">Person</div>
                  </div>  
                  

                  解决方案

                  .e:hover{
                     background-color:#FF0000;
                  }
                  

                  这篇关于div 悬停背景颜色变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Move link image 5px up on hover(悬停时将链接图像向上移动 5px)
                  How do I inspect CSS pseudo classes with firebug?(如何使用 firebug 检查 CSS 伪类?)
                  Why doesn#39;t CSS hover work on table rows when the cells inside the rows have class names?(当行内的单元格具有类名时,为什么 CSS 悬停在表格行上不起作用?)
                  Hover image - display div over it(悬停图像 - 在其上显示 div)
                  How to apply a CSS class on hover to dynamically generated submit buttons?(如何在悬停时将 CSS 类应用于动态生成的提交按钮?)
                  Differences between CSS3 :hover and :focus?(CSS3 :hover 和 :focus 的区别?)

                    <tbody id='G3rzs'></tbody>

                      <i id='G3rzs'><tr id='G3rzs'><dt id='G3rzs'><q id='G3rzs'><span id='G3rzs'><b id='G3rzs'><form id='G3rzs'><ins id='G3rzs'></ins><ul id='G3rzs'></ul><sub id='G3rzs'></sub></form><legend id='G3rzs'></legend><bdo id='G3rzs'><pre id='G3rzs'><center id='G3rzs'></center></pre></bdo></b><th id='G3rzs'></th></span></q></dt></tr></i><div id='G3rzs'><tfoot id='G3rzs'></tfoot><dl id='G3rzs'><fieldset id='G3rzs'></fieldset></dl></div>
                      • <bdo id='G3rzs'></bdo><ul id='G3rzs'></ul>

                      • <small id='G3rzs'></small><noframes id='G3rzs'>

                        <tfoot id='G3rzs'></tfoot>
                        <legend id='G3rzs'><style id='G3rzs'><dir id='G3rzs'><q id='G3rzs'></q></dir></style></legend>