如何實現(xiàn)多角色選項卡登錄效果

本篇內(nèi)容主要講解“如何實現(xiàn)多角色選項卡登錄效果”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學(xué)習(xí)“如何實現(xiàn)多角色選項卡登錄效果”吧!

專注于為中小企業(yè)提供成都做網(wǎng)站、網(wǎng)站建設(shè)、外貿(mào)營銷網(wǎng)站建設(shè)服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)梁園免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了超過千家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

多角色選項卡登錄效果圖如下:
如何實現(xiàn)多角色選項卡登錄效果 
其實是綠色的邊框 選中的角色 也會標(biāo)綠 但是截圖出來就成這效果了

html代碼如下:

<!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>角色選項卡</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript">
$(function(){
$('.tabPanel ul li').click(function(){
$(this).addClass('hit').siblings().removeClass('hit');
$('.panes>div:eq('+$(this).index()+')').show().siblings().hide();
})
})
</script>
</head>
<body>
<div >
<div class="tabPanel">
<ul>
<li class="hit">企業(yè)方</li>
<li>供應(yīng)方</li>
<li>京體網(wǎng)</li>
</ul>
<div class="panes">
<div class="pane" >

<div align="center">
<div id="Main">
<div class="form_div1"><span class="span1">用戶名:</span><input type="text" class="Textbox" /></div>
<div class="form_div1"><span class="span1">密 碼:</span><input type="password" class="Textbox" /></div>
<div>
<div class="form_div1"><span class="span1"> </span> <input type="submit" name="btnLogin" value="登 錄" class="Button"  /> <a href="#">忘記密碼</a> </div>

</div>
<div >
<img src="images/li.png" /> <a href="#" >免費申請成為供應(yīng)商</a>

<img src="images/li.png" /> <a href="#">免費申請成為企業(yè)方</a>
</div>
</div>
</div>
</div>
<div class="pane">
<h5>Secend tab content</h5>
<p>First tab content</p>
</div>
<div class="pane">
<h5>Third tab content</h5>
<p>First tab content</p>
</div>
</div>
</div>
</div>
</body>
</html>


CSS代碼如下:

@charset "utf-8";
/* CSS Document */
*{margin:0;padding:0;word-wrap:break-word;word-break:break-all;}
body{font-family:"宋體","Arial";font-size:12px;background:#fff;min-width:800px;}
ul,li{list-style:none;}
a{text-decoration:none;color:#555;}
h4{font-size:14px;font-weight:bold;margin:0em 0 0.5em 0;}
h3{font-size:16px;font-weight:bold;margin:1em 0}
/**tabs**/
.tabPanel ul{height:23px;border-bottom:1px solid #CECECE; width:294px;}
.tabPanel ul li{
float:left;margin:0 2px 0 0;border:1px solid #CECECE;font-size:13px;height:22px;line-height:22px;width:94px;text-align:center;cursor:pointer;
font-family:"Microsoft Yahei";
text-shadow:0 1px 0 #fff;
border-radius:4px 4px 0 0;
box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.5);
/* background:#ddd;
background:-moz-linear-gradient(top, #eee, #ddd);
background:-webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));*/
}
.tabPanel .hit{
border-color:#B9D894 #B9D894 #FFF;cursor:pointer;color:black;text-shadow:0 1px 0 #FFF;
/*background:#fff;
background:-webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#fff));
background:-moz-linear-gradient(top, #e1e1e1, #fff);*/
}
.pane{border:1px solid #B9D894;border-top:0;min-height:100px;background-color:#fff;display:none; width:290px; height:285px}
.pane p{padding:15px 15px 0 10px;}
.pane h5{padding:15px 15px 0 10px;font-size:14px;font-weight:bold;}
/**88888888888888888888888888*/
#Main {
/* background-color: #fff;
border-color: #bbb;
border-right: 1px solid #bbb;
border-style: solid;*/
border-width: 1px;
padding: 30px 20px 30px 30px;
text-align: left;
font-family:"Microsoft Yahei";
font-size: 13px;
}
div#Heading {
color: #904;
font-family: arial;
font-size: 150%;
font-weight: bold;
margin: 0;
padding: 0 0 15px;
}
h3 {
border-bottom: 1px solid #ddd;
color: #999;
font-size: 105%;
font-weight: bold;
margin: 0 0 8px;
padding: 0;
text-transform: uppercase;
}
p {
margin: 0;
padding: 6px 0;
}
.MyLabel {
color: #999;
display: block;
font-size: 13px;
font-weight: bold;
margin: 6px 0 2px;
text-transform: uppercase;
}
input.Textbox {
font-family: verdana,arial,sans-serif;
height: 20px;
/*padding: 2px;*/
width: 160px;
border:1px solid #CECECE;
}
a.Button:link {
background: none repeat scroll 0 0 #904;
border-color: #999;
border-right: 1px solid #999;
border-width: 1px;
color: #fff;
display: block;
font-family: Verdana;
font-size: 15px;
font-weight: bold;
padding: 5px 12px 3px 20px;
width: 50px;
}
a.Button:visited {
background: none repeat scroll 0 0 #904;
border-color: #999;
border-right: 1px solid #999;
border-style: solid;
border-width: 1px;
color: #fff;
display: block;
font-size: 15px;
font-weight: bold;
padding: 3px 12px;
width: 60px;
}
span.ErrorMessage {
color: #904;
display: block;
font-weight: bold;
}
p.Small {
font-size: 85%;
margin-top: 12px;
}
.Button {
color:#FFF;
font-family:"Microsoft Yahei";
font-size: 13px;
font-weight: bold;
/* padding-bottom: 3px;
padding-top: 5px;*/
width: 60px;
background-color:#73AD2E;
border-radius:5px;
border:none;
}
a.tip_lnk:link, a.tip_lnk:active, a.tip_lnk:visited {
color:#444;
text-decoration: underline;
}
a.top_return {
font-weight: normal;
padding-left: 5px;
}
.form_div1 {
height: 50px;
overflow: hidden;
}
.form_div1 span {
display: block;
float: left;
overflow: hidden;
padding: 0 0 0 6px;
}
.form_div1 .span2 {
color: #999;
padding-top: 6px;
}
.form_div1 .input1 {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: pink;
border-image: none;
border-right: 1px solid pink;
border-style: solid;
border-width: 1px;
color: #666;
height: 20px;
line-height: 20px;
width: 198px;
}
.form_div1 .input2 {
width: 109px;
}
.form_div1 .span1 {
/* padding-top: 6px;
text-align: right;*/
width: 55px;
}
.b{ margin:15px 10px 10px 10px;}

到此,相信大家對“如何實現(xiàn)多角色選項卡登錄效果”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

網(wǎng)頁名稱:如何實現(xiàn)多角色選項卡登錄效果
文章位置:http://bm7419.com/article40/ijhdho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、自適應(yīng)網(wǎng)站、靜態(tài)網(wǎng)站、軟件開發(fā)、App設(shè)計、移動網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

手機網(wǎng)站建設(shè)