想要在选择时突出显示按钮
问题描述:
在我的网页中,我的右侧有5个按钮,箭头指向下方,如果单击它们的左侧,则显示一些内容,直到该内容出现为止,该按钮需要突出显示,并且箭头向左显示.....对应的内容相应的按钮需要突出显示,直到我单击下一个按钮.
我已经完成了工作,但是我只能更改背景颜色.
感谢帮助.
Hi,
In my webpage i have 5buttons on right side and arrows is pointing down and if i click on them left side some content is displaying until the content is there the button needs to highlight and arrow show left.......for corresponding content corresponding button needs to highlight until i click next button.
i worked on it but iam able to change only background color.
appreciate for help.
答
如果背景颜色不足以供您使用,请使用自定义按钮图像而不是标准按钮.使用<img>
标记并针对每个按钮状态使用几个预先创建的图像来响应其事件,以修改其src
;参见 http://www.w3schools.com/tags/tag_img.asp [
If background color is not enough for you, use custom button images instead of standard buttons. Use the<img>
tag and modify itssrc
in response to its events using several pre-created images for each button state; see http://www.w3schools.com/tags/tag_img.asp[^].—SA