Heim  >  Artikel  >  Web-Frontend  >  login and signup 注册和登录tab页面_html/css_WEB-ITnose

login and signup 注册和登录tab页面_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:06:282122Durchsuche

login and signup 注册和登录tab页面

演示


 

JavaScript Code

  1. <script> </script>
  2. $(document).ready(function()  
  3. {  
  4.       
  5. $(".tab").click(function()  
  6. {  
  7. var X=$(this).attr('id');  
  8.    
  9. if(X=='signup')  
  10. {  
  11. $("#login").removeClass('select');  
  12. $("#signup").addClass('select');  
  13. $("#loginbox").slideUp();  
  14. $("#signupbox").slideDown();  
  15. }  
  16. else  
  17. {  
  18. $("#signup").removeClass('select');  
  19. $("#login").addClass('select');  
  20. $("#signupbox").slideUp();  
  21. $("#loginbox").slideDown();  
  22. }  
  23.    
  24. });  
  25.   
  26. });  
  27.   

 

XML/HTML Code

  1.   
  2.   
  3.   
  4. Signup  
  5. Login  
  
  •   
  • Login Form

      
  • Singup Form

      
  •   
  •   
  •   
  •   

     

    CSS Code

    1. body  
    2. {  
    3.     font-family:Arial, Helvetica, sans-serif;  
    4.     font-size:12px; background-color:#333;   
    5. }  
    6. #container  
    7. {  
    8.     width:350px  
    9. }  
    10. #tabbox  
    11. {  
    12.     height:40px  
    13. }  
    14. #panel  
    15. {  
    16.     background-color:#aaa;  
    17.     height:300px;  
    18.       
    19. }  
    20. .tab  
    21. {  
    22. background: #ccc;  
    23. display: block;  
    24. height: 40px;  
    25. line-height: 40px;  
    26. text-align: center;  
    27. width: 80px;  
    28. float: rightright;  
    29. font-weight: bold;  
    30. -webkit-border-top-left-radius: 4px;  
    31. -webkit-border-top-rightright-radius: 4px;  
    32. -moz-border-radius: 4px 4px 0px 0px;  
    33. }  
    34. a  
    35. {  
    36. color: #000;  
    37. margin: 0;  
    38. padding: 0;  
    39. text-decoration: none;  
    40. }  
    41. .signup  
    42. {  
    43.     margin-left:8px;  
    44.       
    45. }  
    46. .select  
    47. {  
    48.     background-color:#aaa;  
    49.       
    50. }  
    51. #loginbox  
    52. {  
    53.     height:300px;  
    54.     padding:10px;  
    55. }  
    56. #signupbox  
    57. {  
    58.     height:300px;  
    59.     padding:10px;  
    60.     display:none;  
    61. }  
    62.   
    63.   
    64.   

     


    原文地址: http://www.freejs.net/article_biaodan_142.html
    Stellungnahme:
    Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
    Vorheriger Artikel:CSS实现菜单栏制作,鼠标经过变色_html/css_WEB-ITnoseNächster Artikel:妙味云课堂之css:表格和表单_html/css_WEB-ITnose

    In Verbindung stehende Artikel

    Mehr sehen