0
我試圖實現使用HTML和CSS的流程圖項目符號點,我已經使用懸停將邊框添加到一個div但它會影響附近的元素,任何提示以避免這將不勝感激?當鼠標懸停在某個元素上時,如何不影響相鄰元素?
.bullets {
display: inline-block;
height: 7px;
width: 7px;
background-color: grey;
border-radius: 50%;
}
.bullets:hover {
border: 5px solid lightgrey;
}
p {
display: inline;
margin-left: 5px;
}
.bulletChild {
margin-left: 20px;
}
<body>
<div class="block">
<div class="bullets"></div>
<p>this is workflowy clone</p>
<div class="bulletChild">
<div class="bullets"></div>
<p>this is workflowy clone</p>
</div>
</div>
</body>
我的小提琴:https://jsfiddle.net/renx777/mwvx8zdz/3/
什麼也沒有發生,因爲帶有'bullets'類的元素是空的。請提供[mcve]。 –
始終保持項目符號的邊框,但在非懸停狀態下使其透明。這將防止任何懸停轉移。 – Korgrue