开发者

Setting default tab as visited

I have some basic tabs in HTML, with CSS to change the colour once the tab has been visited. My problem is that the default tab (that is selected when开发者_运维百科 the page is opened) is not set as visited (as it hasn't been clicked yet). So when the user clicks a second tab, the default is marked as not visited yet. Whats the easiest way for me to get around this?


Give the default tab a class to make the colour match the colour of a visited tab?

a.home_link
{
    color:#xxx;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜