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;
}
精彩评论