0
私はサークルの背景のない、唯一の境界線を持っている、と私はそれがホバーにスケールする:https://jsfiddle.net/u36nfxs0/2/スケールの境界線の幅を維持するホバー上の円
:ここ
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link type="text/css" rel="stylesheet" href="css/main.css" />
<style>
#circle{
border: 1px solid black;
width: 40px;
height: 40px;
border-radius: 50%;
margin: 20% auto;
transition: all 0.5s ease;
}
#circle:hover{
cursor: pointer;
transform: scale(6);
border: 1px solid black;
transition: all 0.5s ease;
}
</style>
</head>
<body>
<div id="circle">
</div>
</body>
</html>
をフィドルですあなたが見ることができるように、問題は、境界線の幅も同様に拡大するということです。ボーダーの幅を維持して円を拡大縮小する方法はありますか?
ありがとうございます!