开发者

Setting default tab as visited

开发者 https://www.devze.com 2023-03-11 19:05 出处:网络
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

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

精彩评论

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