2014-04-25 160 views
1

是否可以创建辅助按钮,以便在鼠标悬停或点击主按钮时显示该按钮? 所以主要的按钮可能是“火车”。然后当你将鼠标悬停在该按钮上时,将出现2个附加的辅助按钮,例如, “火车1”和“火车2”。将鼠标悬停在主按钮上时显示辅助按钮

<div id="button_group"> 
    <button type = "button" class = "Button" id="trains" > Trains </button> <br /> 
    <button type = "button" class = "Button" id="train1" > Train 1 </button> <br /> 
    <button type = "button" class = "Button" id="train2" > Train 2 </button> <br /> 
</div> 
+0

这可能吗?当然是。你有尝试过什么吗? – j08691

+0

我尝试使用ul&li。但是,我很困惑什么时候使用哪个。我也认为我必须使用“display:none”风格。 – user3498435

回答

相关问题