3px在div的左側或右側的雙邊框,但是在chrome中它會在邊框的頂部留下1px的間隙。我試圖廣泛查看是否這是一個瀏覽器錯誤或某種解決方案。css border-style double 1px gap chrome
如果你在Firefox瀏覽代碼/例如,你得到連續的黑條,鍍鉻和我的手機/平板電腦,我在打破了黑條每個div的頂部得到一個1px的差距
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
.test {
height: 100px;
width: 100px;
border-right: 3px double #c7c7c7;
border-left: 3px double #c7c7c7;
background-color: #06F;
padding: 0px;
margin: 0px;
border-bottom-style:
}
</style>
</head>
<body>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
</body>
</html>
這是不是一個錯誤。這是一個功能:) – maxlego