RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
csstab样式的简单介绍

谁有DIV+CSS制作的TAB选项卡给拷一个呗

style type="text/css"

新城网站建设公司创新互联,新城网站设计制作,有大型网站制作公司丰富经验。已为新城成百上千家提供企业网站建设服务。企业网站搭建\成都外贸网站制作要多少钱,请找那个售后服务好的新城做网站的公司定做!

!--

body,td{font-size: 12px;}

.tab{margin-top:100px}

#TabTab03Con1{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}

#TabTab03Con2{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}

#TabTab03Con3{width:346px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}

.xixi1{width:346px;height:27px;line-height:27px;background-image:url(images/01.jpg);cursor:pointer;}

.xixi2{width:346px;height:27px;line-height:27px;background-image:url(images/02.jpg);cursor:pointer;}

.xixi3{width:346px;height:27px;line-height:27px;background-image:url(images/03.jpg);cursor:pointer;}

.tab1{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;}

.tab2{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;color:#FFFFFF;}

.tab3{width:115px;height:27px;line-height:27px;float:left;text-align:center;cursor:pointer;color:#FFFFFF;}

--

/style

/head

body style="text-align:center"

script type=text/javascript

function setTab03Syn ( i )

{

selectTab03Syn(i);

}

function selectTab03Syn ( i )

{

switch(i){

case 1:

document.getElementById("TabTab03Con1").style.display="block";

document.getElementById("TabTab03Con2").style.display="none";

document.getElementById("TabTab03Con3").style.display="none";

document.getElementById("font1").style.color="#000000";

document.getElementById("font2").style.color="#ffffff";

document.getElementById("font3").style.color="#ffffff";

break;

case 2:

document.getElementById("TabTab03Con1").style.display="none";

document.getElementById("TabTab03Con2").style.display="block";

document.getElementById("TabTab03Con3").style.display="none";

document.getElementById("font1").style.color="#ffffff";

document.getElementById("font2").style.color="#000000";

document.getElementById("font3").style.color="#ffffff";

break;

case 3:

document.getElementById("TabTab03Con1").style.display="none";

document.getElementById("TabTab03Con2").style.display="none";

document.getElementById("TabTab03Con3").style.display="block";

document.getElementById("font1").style.color="#ffffff";

document.getElementById("font2").style.color="#ffffff";

document.getElementById("font3").style.color="#000000";

break;

}

}

/script

div class="tab"

div id="bg" class="xixi1"

div id="font1" class="tab1" onMouseOver="setTab03Syn(1);document.getElementById('bg').className='xixi1'"北京蓝之象企划机构1/div

div id="font2" class="tab2" onMouseOver="setTab03Syn(2);document.getElementById('bg').className='xixi2'"北京蓝之象企划机构2/div

div id="font3" class="tab3" onMouseOver="setTab03Syn(3);document.getElementById('bg').className='xixi3'"北京蓝之象企划机构3/div

/div

div id=TabTab03Con1蓝之象始终坚持以创造市场价值为导向,以帮助客户成长为目标。秉持“简单做人,用心做事”的经营理念。团队专注于品牌整合营销和视觉创意设计研究,凭借“精准、独到、高效”的做事准则,得到300多家企业的支持和信赖,成为企业品牌与销量快速提升的全程合作伙伴。 /div

div id=TabTab03Con2 style="display:none"蓝之象企划机构在中国著名品牌营销策划专家聂继军(光头老聂)先生的带领下,训练了一支打"赢"仗的品牌营销、创意设计团队。已成功的帮助中国联通、韩国 SK集团润滑油、水晶石数字科技、韩建集团、天津泰达酒业、康联电子、SSK科技、北京国安、汾酒集团、成都宽窄巷子、Aee鞋业、等企业解决了[品牌定位]、[品牌营销]、[创意设计]、[品牌推广]等核心难题。 /div

div id=TabTab03Con3 style="display:none"“蓝之象”寓意:大象无形、厚德载物、利他境界。“象”乃形体动物之首,有大象无形之美誉。

"大象无形"一语出自老子《道德经》第四十一章。老子在说到"道"的至高至极境界时,引用 了"大方无隅,大器晚成,大音希声,大象无形"等说法,可以理解为:世界上最伟大恢宏、崇高壮丽的气派和境界,往往并不拘泥于一定的事物和格局,而是表现出"气象万千"的面貌和场景。

“蓝之象”英文“Larithine”由“Layout Right Think”三个英文单词演变组成,意为“设计规划、正确、满意、思维”。 /div

/div

如何在css中定义TAB菜单在网页中的位置?(代码)

首先 楼主不管CSS放在head,或者在body,还是外链接效果都是一样的,没有任何区别,对与菜单在网页中的位置其实很简单,如果你CSS的盒子模式嵌套得好的话,你只要用到position:relative来进行微调

否则的话 可以用position:absolute进行绝对调整

我把几个调整位置的代码发给你,希望对你有帮助

CSS 定位和浮动

CSS 为定位和浮动提供了一些属性,利用这些属性,可以建立列式布局,将布局的一部分与另一部分重叠,还可以完成多年来通常需要使用多个表格才能完成的任务。

定位的基本思想很简单,它允许你定义元素框相对于其正常位置应该出现的位置,或者相对于父元素、另一个元素甚至浏览器窗口本身的位置。显然,这个功能非常强大,也很让人吃惊。要知道,用户代理对 CSS2 中定位的支持远胜于对其它方面的支持,对此不应感到奇怪。

另一方面,CSS1 中首次提出了浮动,它以 Netscape 在 Web 发展初期增加的一个功能为基础。浮动不完全是定位,不过,它当然也不是正常流布局。我们会在后面的章节中明确浮动的含义。

CSS position 属性

通过使用 position 属性,我们可以选择 4 中不同类型的定位,这会影响元素框生成的方式。

position 属性值的含义:

static

元素框正常生成。块级元素生成一个矩形框,作为文档流的一部分,行内元素则会创建一个或多个行框,置于其父元素中。

relative

元素框偏移某个距离。元素仍保持其未定位前的形状,它原本所占的空间仍保留。

absolute

元素框从文档流完全删除,并相对于其包含块定位。包含块可能是文档中的另一个元素或者是初始包含块。元素原先在正常文档流中所占的空间会关闭,就好像元素原来不存在一样。元素定位后生成一个块级框,而不论原来它在正常流中生成何种类型的框。

fixed

元素框的表现类似于将 position 设置为 absolute,不过其包含块是视窗本身。

提示:相对定位实际上被看作普通流定位模型的一部分,因为元素的位置相对于它在普通流中的位置。

css tab样式中背景图片对不齐

*{margin:0px auto;padding:0px}加进样式里面试试

background:url(../images/but2.png); background-position:top right;这种你可以这样写background:url(../images/but2.png) right no-repeat;更好如果要行居中的话直接在no-repeat后面加个0px 不用去指明父框坐标原点

纯利用css+div能做出这样的tab菜单吗?

可以啊

style type="text/css"

!--

#divall {

margin:0px;

width:980px;

height:200px;

}

#table1 table{

width:100%;

height:30px;

font-size:14px;

color:#FF6600;

background:url(../hotimg/fl.gif) repeat-x;

}

#Ncontent1,#Ncontent2,#Ncontent3{

margin:0px;

height:200px;

width:100%;

text-align:left;

background-color:#884018;

float:left;

}

a {

text-decoration:none;

}

.changebordercolor {

background-color:#993300;

font-weight:bold;

font-size:14px;

color:#FFFFFF;

border-top:1px solid #884018;

border-bottom:0px solid #8840184;

border-left:1px solid #884018;

border-right:1px solid #884018;

}

.backbordercolor {

background:url(../hotimg/fl.gif) repeat-x;

border-top:1px solid #884018;

border-bottom:0px solid #884018;

border-left:1px solid #884018;

border-right:1px solid #884018;

}

--

/style

script language="javascript"

function aa1(){

document.getElementById("Ncontent1").style.display="block"

document.getElementById("Ncontent2").style.display="none"

document.getElementById("Ncontent3").style.display="none"

}

function aa2(){

document.getElementById("Ncontent1").style.display="none"

document.getElementById("Ncontent2").style.display="block"

document.getElementById("Ncontent3").style.display="none"

}

function aa3(){

document.getElementById("Ncontent1").style.display="none"

document.getElementById("Ncontent2").style.display="none"

document.getElementById("Ncontent3").style.display="block"

}

/script

!-- 选项卡---

div id="left"

div id="divall"

div id="table1"

table border="1" cellpadding=0 cellspacing=0 bordercolor="#884018" style="border-collapse:collapse"

tr align=center

td width="100" onMouseOver="aa1();this.className='changebordercolor'"onMouseOut="this.className='backbordercolor'"选项卡1/td

td width="100" onMouseOver="aa2();this.className='changebordercolor'"onMouseOut="this.className='backbordercolor'"选项卡2/td

td width="100" onMouseOver="aa3();this.className='changebordercolor'"onMouseOut="this.className='backbordercolor'"选项卡3/td

td width="800"您想添加的内容/td

/tr/table/div

div id="Ncontent1"

img src="hotimg/flash.jpg" width="878" height="198" //div

div id="Ncontent2"

img src="hotimg/flash2.jpg" width="976" height="198" /

/div

div id="Ncontent3"

img src="hotimg/flash.jpg" width="976" height="198" /

/div

/div

!--tab结束 --

div css的tab选项卡效果

span id="ContentArea"html

head

meta http-equiv="Content-Type" content="text/html; charset=gb2312"

title网页特效/title

/head

style type="text/css"

#dNavBar{

background-color:#ffffff;

}

#dNavBar li{

list-style-type:none;

float:left;

width:84px;

height:28px;

line-height:28px;

font-size:12px;

color:#FFFFFF;

border:3px solid #ffffff;

background-color:#86C2FF;

text-align:center;

display:block;

cursor:pointer;

}

#subMenu{

background-color:#0000FF;

width:500px;

border-left:3px solid #ffffff;

border-right:3px solid #ffffff;

height:29px;

line-height:29px;

color:#FFFFFF;

font-size:12px;

padding-left:10px;

}

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

a:link {

color: #FFFFFF;

text-decoration: none;

}

a:hover{

color: #FFFFFF;

text-decoration: none;

}

a:visited{

color: #FFFFFF;

text-decoration: none;

}

/style

script language="javascript"

function ShowMenu()

{

var barCTT=document.getElementById("dNavBar")

var liArr=barCTT.getElementsByTagName("li")

var links=new Array()

links[0]="a href='#'当前位置:首页"

links[1]="a href='#'项目一/a | a href='#'项目二/a | a href='#'项目三/a | a href='#'项目四/a"

links[2]="a href='#'项目一/a | a href='#'项目二/a | a href='#'项目三/a"

links[3]="a href='#'项目一/a | a href='#'项目二/a | a href='#'项目三/a | a href='#'项目四/a | a href='#'项目五/a"

links[4]="a href='#'项目一/a | a href='#'项目二/a"

links[5]="a href='#'项目一/a | a href='#'项目二/a | a href='#'项目三/a"

links[6]="a href='#'项目一/a | a href='#'项目二/a"

links[7]="a href='#'项目一/a | a href='#'项目二/a"

links[8]="a href=''项目一/a | a href='#'项目二/a"

links[9]="a href='#'项目一/a | a href='#'项目二/a"

links[10]="a href='#'项目一/a| a href='#'项目二/a"

links[11]="a href='#'项目一/a | a href='#'项目二/a"

links[12]="a href='#'项目一/a | a href='#'项目二/a"

for (i=0;iliArr.length;i++)

{

liArr[i].onclick=function()

{

selectThis(this,liArr,links)

}

}

}

function selectThis(indexObj,allLi,infoArr)

{

var index=0;

for (i=0;iallLi.length;i++)

{

allLi[i].style.border="3px solid #ffffff";

allLi[i].style.backgroundColor="#86C2FF";

allLi[i].style.height="28px";

if (indexObj==allLi[i])

{

index=i;

}

}

indexObj.style.borderBottom="0px solid #666688";

indexObj.style.backgroundColor="#0000FF";

indexObj.style.height="31px";

document.getElementById("subMenu").innerHTML=infoArr[index];

}

/script

body onLoad="ShowMenu()"

div id="dNavBar" style="float:none; width:560px;"li首页/lili娱乐快报/lili音乐天地/lili极品FLASH/li

/div

div id="subMenu"站务公告/div

/body

/html

/span

css中的tab2 是什么? 和tab有什么区别?

1)tab2是设置页面的菜单,就是这一句:

基本选项 | 选择模板 | 自定义模板 | 高级设置 | 访问统计 | 宠物设置

2)tab是非设置页面的菜单,就是这一句:

主页|博客|相册|个人档案|好友设置


新闻标题:csstab样式的简单介绍
文章分享:http://scyingshan.cn/article/hocieh.html