css3技术

div+css教程_DIV+CSS实现网页布局实例代码(2)_div+css教程(2)

字号+ 作者:H5之家 来源:H5之家 2015-09-16 14:29 我要评论( )

#footer { width:800px; height:100px; background:red; margin:auto 0px; padding-top: 30px; color: #ffffff; } #footer a:link, #footer a:visited,{ text-decoration:none; color: #ffffff; } #footer a:hover{

 #footer {
  width:800px;
  height:100px;
  background:red;
  margin:auto 0px;
  padding-top: 30px;
  color: #ffffff;
 }
  #footer a:link, #footer a:visited,{
    text-decoration:none;
    color: #ffffff;
 }
 #footer a:hover{
    text-decoration:underline;
    color: #ffffff;
  }
 
 .tab1  h3{
  float:left;
  width:300px;
  height:20px;
  line-height:20px;
  margin:0px;
  font-size:13px;
  text-align:left;
  color:red;
  background:green;
  padding-left:10px;
 }

 .tab2{
          width:300px;
          height:180px;
       
         background:yellow;
      
 }

 .tab2  ul {
  margin: 4px 0 0;
  list-style:none;
  padding:0;
 }
 
 .tab2 li
 {
  float:left;
  width:50%;
 }

 .tab2 li a {
  display:block;
  width:84%;
  height:25px;
  line-height:25px;
  margin-left:8%;
  font-size:12px;
  text-decoration:none;
  color:#333;

 }

 #tab {
  float:left;
  margin:0px;
  width:600px;
  height:260px;
  position:relative;
  background:green;
 }

 #tab h3{
  float:left;
  width:120px;
  height:26px;
 
  line-height:26px;
  margin:0 -1px 0 0 ;
  font-size:12px;
  cursor:pointer;
  text-align:center;
  color:#ff00ff;
  background:#aacc33;
 }
 
 #tab div {
  display:none;
 }
 
 #tab .block {

  display:block;
 }

 #tab .up {

  background:blue;
 }
 #tab  div {
              float:left;
              top:26px;
              left:0px;
              width:600px;
              height:230px;
             border:solid #eee;
             border-width:0 1px 1px;
             background:#0f0f0f;
 }

 #tab ul{
  float:left;
  margin:15px 0 0;
  list-style:decimal;
  padding:0;
  clear:right;
 }
 
 #tab li {
  float:left;
  width:50%;
  background:#123456;
 }
 #tab li a{
  display:block;
  width:90%;
   height:25px;
  line-height:25px;
  margin-left:8%;
  font-size:12px;
  text-decoration:none;
  color:#ffffff;
 }

 #tab li a:hover {
  text-decoration:underline;
  color:red;

 }
 
//-->
</style>
</head>


<body>
<div  id="container" >
 <div id="header">
  <div id="logo">
  </div>

  <div id="banner">
  </div>
 </div>

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
网友点评