仓酷云

标题: 来谈谈:CSS+JS完成的选项卡效果 [打印本页]

作者: 乐观    时间: 2015-1-16 00:13
标题: 来谈谈:CSS+JS完成的选项卡效果
你可以将许多网页的风格格式同时更新,不用再一页一页地更新了。
<!doctypehtmlpublic"-//w3c//dtdxhtml1.0transitional//en""http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<htmllang="us-en">
<head>
<title>css选项卡(html组件)</title>
<linkrel="shortcuticon"href="favicon.ico"type="image/x-icon"/>
<metahttp-equiv="content-type"content="text/html;charset=gb2312"/>
<metaname="keywords"content=""/>
<metaname="description"content=""/>
<styletype="text/css">
div.carddiv{background-color:#FF8000;float:left;padding:1px;padding-bottom:0;clear:both;width:405px;}
div.carda{color:black;font-size:14px;text-decoration:none;float:left;width:100px;text-align:center;background-color:white;margin-right:1px;}
div.carddiv.homea.home{font:normalnormalbold14px/1.5宋体;}
div.carddiv.internationala.international{font:normalnormalbold14px/1.5宋体;}
div.carddiv.sporta.sport{font:normalnormalbold14px/1.5宋体;}
div.carddiv.financea.finance{font:normalnormalbold14px/1.5宋体;}
div.carddiv.content{background-color:white;border:1pxsolid#ff8000;height:100px;}
</style>
<scripttype="text/javascript">
varshq={}
shq.cmenu=function(e)
{
vare=window.event?window.event.srcElement:e.target;
if(/a/i.test(e.tagName)){
e.parentNode.className=e.className;
e.parentNode.nextSibling.innerHTML=e.innerHTML;
e.parentNode.nextSibling.style.cssText=border-top:none;
e.blur();
}
}
</script>
</head>
<body>
<divclass="card">
<div>
<ahref="#"class="home">国际</a>
<ahref="#"class="international">国际</a>
<ahref="#"class="sport">体育</a>
<ahref="#"class="finance">财经</a>
</div><divclass="content"></div>
</div>
<divclass="card">
<div>
<ahref="#"class="home">国际</a>
<ahref="#"class="international">国际</a>
<ahref="#"class="sport">体育</a>
<ahref="#"class="finance">财经</a>
</div><divclass="content"></div>
</div>
<divclass="card">
<div>
<ahref="#"class="home">国际</a>
<ahref="#"class="international">国际</a>
<ahref="#"class="sport">体育</a>
<ahref="#"class="finance">财经</a>
</div><divclass="content"></div>
</div>
</body>
</html><scriptlanguage="Javascript">
varnow=newDate();
document.write("
</noscript>
</p>
CSS非常容易编写。你可以象写html代码一样轻松地编写CSS。
作者: 简单生活    时间: 2015-1-18 05:33
可以使用CSS检查工具进行设计。
作者: 再现理想    时间: 2015-2-4 13:24
Dreamweaver在所见即所得添加链接,也可以先选中文字或图片然后在属性栏中的链接栏后的一个小圆圈,用鼠标点击小圆圈按住不放拖动出箭头然后指向文件即可。
作者: 分手快乐    时间: 2015-2-9 23:51
滚动条)层属性--溢出(visible/hidden/scroll/auto)
作者: 因胸联盟    时间: 2015-2-28 10:03
我深感到交流的重要。善于交流的人才是善于学习的人。在整个技术的学习过程中,我总结了四大定律:兴趣、恒心、虚心、时间。
作者: 莫相离    时间: 2015-3-9 22:26
在刚开始接触网页的第一堂课上,听说网页制作会是一门很无聊并且很难听懂的过程,而事实却印证了这样一个事实。
作者: 柔情似水    时间: 2015-3-17 03:07
Adobe Dreamweaver CS5 软件使设计人员和开发人员能充满自信地构建基于标准的网站。由于同新的 Adobe CS Live 在线服务 Adobe BrowserLab 集成。
作者: 爱飞    时间: 2015-3-23 18:02
足见市场的反响和MACROMEDIA公司对它们的自信。说到Dreamweaver8我们应该了解一下网页编辑器的发展过程,随着互联网(Internet) 的家喻户晓。




欢迎光临 仓酷云 (http://www.ckuyun.com/) Powered by Discuz! X3.2