I am making an expand/collapse call rates table for the company I work for.
(我正在为我工??作的公司制作一个扩展/折叠呼叫率表。)
I currently have a table with a button under it to expand it, the button says "Expand". (我目前有一个桌子,下面有个按钮来展开它,该按钮说“展开”。)
It is functional except I need the button to change to "Collapse" when it is clicked and then of course back to "Expand" when it is clicked again. (除了我需要在单击按钮时将按钮更改为“折叠”,然后在再次单击按钮时将其更改为“展开”之外,此功能正常。)
The writing on the button is a background image. (按钮上的文字是背景图像。)
So basically all I need is to change the background image of a div when it is clicked, except sort of like a toggle.
(因此,基本上,我需要做的就是在单击div时更改div的背景图像,除了像切换一样。)
ask by zuk1 translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…