箱體陰影在Microsoft Edge瀏覽器上不起作用。我已經實現後續的部分:(我不是白癡我在頂部)箱體陰影在micosoft邊緣不起作用
<meta http-equiv="X-UA-Compatible" content="IE=edge">
這是我的index.html文件的體:
<body>
<div id="wrapper">
<header>
<div id="header-inner">
<div id="logo">
<a href="index.html">body</a>
</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a id="sign-in" href="#">Sign in</a>
<span id="sign-in-menu">
<div class="arrow-up"></div>
<div class="arrow-up-top"></div>
<div class="form">
<form action="login.php" method="get">
<input type="text" placeholder="Username" name="inputUser">
<input type="password" placeholder="Password"
name="inputPass">
<!-- <input type="checkbox" name="checkbox" id="checkbox" class="css-checkbox">
<label for="checkboxG1" class="css-label">Remember me</label> COOOKKiiieeesss -->
</form>
</div>
<div class="submit-area">
<input type="submit" value="Sign up">
</div>
</span>
</li>
<li><a href="register.html">Sign up</a></li>
</ul>
</div>
</header>
</div>
懸停CSS盒子陰影代碼:
header li > span input[type=submit]:hover {
-webkit-box-shadow: 0 0 0 1px #383e46;
-ms-box-shadow: 0 0 0 1px #383e46;
box-shadow: 0 0 0 1px #383e46;
}
如果你沒有''在你的代碼,請填入 –
爲什麼???它在一開始就是標準做法。 –
@Justinas,編輯過的評論..其實我的意思是補充一下 –