Heim  >  Fragen und Antworten  >  Hauptteil

Wenn die Maus über die Navigationsbeschriftung fährt, hat dies keine Auswirkung. Wie kann ich das Problem finden?

<!DOCTYPE html>

<html>

<head>

<meat charset="utf-8">

<title>Elemente auf Blockebene in Inline-Elemente konvertieren</title> ;

<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">

<style type="text/css">

p { display:inline;width:200px;height:200px;backgroud-color:#ccc;}

b{display:block;}

/*div{display:inline-block;height:30px;width:400px; Hintergrund -color:pink;}*/


.box{width:100px;height:40px;background-color:#ccc;line-height: 40px;text-align: center;}

.main{ width :100px;height:100px;background-color:pink;line-height:100px; text-align:center;display:none;}

.box:hover .main{display:block;}

</ style> ;

</head>

<body>

<p>Elemente auf Blockebene in Inline-Elemente konvertieren</p><span>123</span>

<b>Inline-Elemente Hauptsächlich Elemente auf Blockebene</b>

<div>Markup in Inline-Blockelemente konvertieren</div><span>123</span>

<div class="box"> Navigation</div>

<div class="main">Kleines Menü</div>

</body>

</html>


萝卜萝卜2148 Tage vor1070

Antworte allen(1)Ich werde antworten

  • 天国之秋

    天国之秋2018-12-22 14:45:55

    <div class="box">导航</div>

    <div class="main">小菜单</div>

    .box:hover .main {}

    说明 .main 在 .box 内部

    <div class="box">导航

        <div class="main">小菜单</div>

    </div>


    Antwort
    0
  • StornierenAntwort