首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > CSS只有样本创建标签和可扩展的树没有JavaScript

CSS只有样本创建标签和可扩展的树没有JavaScript

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP