登录 | 注册 | FAQ
Anonymous

Item do Menu não Ativa

+ 发表回复

2 篇帖子 分页: 1 / 1


Item do Menu não Ativa

kklo » 周三 4月 03, 2013 7:36 pm

Boa tarde a todos!

Estou criando um menu horizontal e me perdi em um erro que está me tirando noites de sono. Ao clicar em algum item do menu, o mesmo não fica ativado, o resto esta funcionando perfeitamente.

Segue os scripts:

div.idTabs{
padding:5px 0px 6px 0px;
border-bottom:1px solid #000000;
position:relative;
z-index:100;
text-align:center;



}
div.idTabs span a{
padding:5px;
text-decoration:none;
background: url(../navegacao_abas/btn_closed_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;
}
div.idTabs span a:hover{
text-decoration:none;
background:url(../navegacao_abas/btn_open_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;


}
div.idTabs span a.selected{
position:relative;
z-index:101;
background: url(../navegacao_abas/btn_open_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;
}
div.idTabs span a.selected:hover{
text-decoration:none;
}

<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form-validate" onSubmit="return myValidate(this);">
<div class= "tabs_wrapper">
<div class="idTabs">
<span><a class="selected" href="#aaaa">aaaa</a></span>
<span><a href="#bbbb">bbbb</a></span>
<span><a href="#cccc">cccc</a></span>
<span><a href="#dddd">dddd</a></span>
<span><a href="#eeee">eeee</a></span>
<span><a href="#ffff">ffff</a></span>
<span><a href="#gggg">gggg</a></span>
</div>
</div>

Alguém poderia me ajudar?
Obrigado
头像

kklo

  • 帖子: 4
  • 注册: 周三 4月 03, 2013 7:28 pm

Re: Item do Menu não Ativa

XainPro » 周六 4月 06, 2013 12:22 pm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">

div.idTabs{
padding:5px 0px 6px 0px;
border-bottom:1px solid #000000;
position:relative;
z-index:100;
text-align:center;



}
div.idTabs span a{
padding:5px;
text-decoration:none;
background: url(../navegacao_abas/btn_closed_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;
}
div.idTabs span a:hover{
text-decoration:none;
background:url(../navegacao_abas/btn_open_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;


}
.selected{
position:relative;
z-index:101;
background: url(../navegacao_abas/btn_open_tab.png);
background-size:100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
color:#606062;
border:none;
text-shadow:0px .5px 3px #ffffff;
background:#06F;
}
div.idTabs span a.selected:hover{
text-decoration:none;
}
</style>
</head>

<body>



<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form-validate" onSubmit="return myValidate(this);">
<div class= "tabs_wrapper">
<div class="idTabs">
<span class="selected"><a href="#aaaa">aaaa</a></span>
<span><a href="#bbbb">bbbb</a></span>
<span><a href="#cccc">cccc</a></span>
<span><a href="#dddd">dddd</a></span>
<span><a href="#eeee">eeee</a></span>
<span><a href="#ffff">ffff</a></span>
<span><a href="#gggg">gggg</a></span>
</div>
</div>


</body>
</html>


adicionar classe selecionada para abranger
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1