2017-08-02 85 views

回答

5

使用title,以顯示您的留言:

<button class="addMore" title="click here">+</button>

+0

哇,這麼簡單。在這裏,我在亂搞:徘徊了一小時嘗試不同的事情......我感到羞愧,但嘿,這就是你學習的方式。我再也不會犯這個錯誤了。 – DragonHeart000

+1

後續問題,是否可以設置? – DragonHeart000

0

您可以使用CSS設置如下按鈕的背景顏色變化,

.addMore:hover { 
    background-color: #545454; //desired color code 
} 

,並設置工具提示爲<button class="addMore" title="click here">+</button>

0

.addMore{ 
 
    border: none; 
 
    width: 32px; 
 
    height: 32px; 
 
    background-color: #eee; 
 
    transition: all ease-in-out 0.2s; 
 
    cursor: pointer; 
 
} 
 
.addMore:hover{ 
 
    border: 1px solid #888; 
 
    background-color: #ddd; 
 
}
<button class="addMore" title="Hover on me!">+</button>