<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 悬停背景颜色变化?

        时间:2023-11-30
        <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 悬停背景颜色变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何更改选择中悬停选项的背景颜色和文本? 下一篇:CSS3 :hover 和 :focus 的区别?

                  相关文章

                    <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>

                  1. <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>