资 源 简 介
Novel method (so far as the author is aware) of displaying tabs and trees using pure HTML/CSS - no javascript needed.
Works on modern browsers which support html labels, css"s :checked property, and css"s + selector.
While playing with radio buttons I accidentally discovered that I could use them to make tabs in my web pages without the use of javascript. This has already been done, often with pagename>tabname such that the body tag for each page has id=pagename as an attribute. I"m sure there are other methods too. A quick google search did not reveal the method I had found. A couple more minutes with CSS and I had a tree menu which expanded and collapsed on a click. Cool.
This method is not necessarily better or worse than what"s out there. It"s just different. I don"t really care to debate the finer points of whose tabs are more efficient to run or more elegant to read. This is just another metho