Please tell me how to create the sorting style that imitates Taobao?
Select the background to change, just like a tab, please ask for the code
Question added:
The following is the implemented switch button. The problem is why when tested in IE browser and World Window browser, when the mouse is moved up or left after moving up, the background color turns orange, while in 360 browser and Google Chrome, the color Always white? Asking for expert guidance
Attached code:
#navColumn {width:710px;}
#navColumn ul {padding-left:2px;height:29px;margin:0px;padding:0px;font- size:12px;text-align:center;list-style:none;}
#navColumn li {float:left;line-height:29px; height:29px;text-align:center;width:82px;background: #fff;}
#navColumn li.now a:link,#navColumn li.now a:visited {color:#FC8004;font-size:14px;font-weight:700;background:#FC8004;}
#navColumn a:link, #navColumn a:visited {width:82px;display:block;}
#navColumn a:hover,#navColumn a:active {width:82px;height:29px;display:block;text -decoration:none;font-weight:700;background-color:#FC8004;}
Button code:
;ul>
="gongyingMenu">Supply
"#" id="btn2">Requirements
It requires the cooperation of js. When clicked, add a selected style name to the current label, and then add a background-color to selected.
Misunderstanding. . . I didn’t see your subsequent additions, sorry. After looking at it, yours is also normal in Google Chrome. Logically speaking, it is normal. It may be a problem with your browser cache.
No, it doesn’t work for me to test here. 360 Browser and Google Chrome don’t display the background color
Just write something for you to read.