A layout effect of Taobao home page

Source: Internet
Author: User
Taobao the following effect of the application of a total of 3 pictures, it should be said with 3 or 2 and is the most optimized; If you just use a picture of a little pervert; hehe.

The above is the test code, CSS and content are not optimized, but the idea should be right! One day to study his navigation bar, a little meaning;

Here is the CSS Content section:

Program code
<style>
/* Child Mouse www.zishu.cn * *
body{margin:10px; padding:10px; font-size:12px; line-height:1.7; text-align:center;
#zishu {width:780px; margin-left:auto; margin-right:auto;}
. list{width:260px; height:155px; float:left;}
. box{float:left; width:225px;}
. box2{padding:0 5px 0 5px; Text-align:left;}
#r1 {background-position:0;}
#r2 {background-position: -19px;}
#r3 {background-position: -38px;}
#r4 {background-position: -57px;}
#r5 {background-position: -76px;}
#r6 {background-position: -95px;}
#r7 {background-position: -114px;}
#r8 {background-position: -133px;}
#r9 {background-position: -152px;}
#t1 {background-position:0px 0px;}
#t2 {background-position:0px-5px;}
#t3 {background-position:0px-10px;}
#t4 {background-position:0px-15px;}
#t5 {background-position:0px-20px;}
#t6 {background-position:0px-25px;}
#t7 {background-position:0px-30px;}
#t8 {background-position:0px-35px;}
#t9 {background-position:0px-40px;}
#y1 {background-position:0px 0px;}
#y2 {background-position:0px-18px;}
#y3 {background-position:0px-36px;}
#y4 {background-position:0px-54px;}
#y5 {background-position:0px-72px;}
#y6 {background-position:0px-90px;}
#y7 {background-position:0px-108px;}
#y8 {background-position:0px-126px;}
#y9 {background-position:0px-144px;}
#u1 {border-right:1px solid #8A8FA0; border-left:1px solid #8A8FA0;}
#u2 {border-right:1px solid #DF4493; border-left:1px solid #DF4493;}
#u3 {border-right:1px solid #3B6DA5; border-left:1px solid #3B6DA5;}
#u4 {border-right:1px solid #AA86CE; border-left:1px solid #AA86CE;}
#u5 {border-right:1px solid #6EA314; border-left:1px solid #6EA314;}
#u6 {border-right:1px solid #C55936; border-left:1px solid #C55936;}
#u7 {border-right:1px solid #FAAD2D; border-left:1px solid #FAAD2D;}
#u8 {border-right:1px solid #86D500; border-left:1px solid #86D500;}
#u9 {border-right:1px solid #2F8A8E; border-left:1px solid #2F8A8E;}
. Cd1{background-image:url (chl_name_bg_3.gif); background-repeat:no-repeat;cursor:pointer;float:left; width:19px; height:142px;}
. Ce1{background-image:url (chl_bg_1_2.gif); background-repeat:no-repeat;height:5px;overflow:hidden;}
. Cf1{background: #fafafa; border-top:0;border-bottom:0; height:119px;}
. Cg1{background-image:url (chl_bg_2_2.gif); background-repeat:no-repeat;height:18px;overflow:hidden;}
. l1{width:40px;height:20px;cursor:pointer; margin-left:180px;}
</style>


Here is the Content section:
Program code
<div id= "Zishu" >
<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R1" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T1" class= "Ce1" ></div>
<div id= "U1" class= "CF1" >
<div class= "Box2" > here is the content 1</div>
</div>
<div id= "y1" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R2" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T2" class= "Ce1" ></div>
<div id= "U2" class= "CF1" >
<div class= "Box2" > here is the content 2</div>
</div>
<div id= "y2" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R3" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T3" class= "Ce1" ></div>
<div id= "U3" class= "CF1" >
<div class= "Box2" > here is the content 3</div>
</div>
<div id= "Y3" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R4" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T4" class= "Ce1" ></div>
<div id= "U4" class= "CF1" >
<div class= "Box2" > here is the content 4</div>
</div>
<div id= "Y4" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R5" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T5" class= "Ce1" ></div>
<div id= "U5" class= "CF1" >
<div class= "Box2" > here is the content 5</div>
</div>
<div id= "Y5" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R6" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T6" class= "Ce1" ></div>
<div id= "U6" class= "CF1" >
<div class= "Box2" > here is the content 6</div>
</div>
<div id= "Y6" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R7" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T7" class= "Ce1" ></div>
<div id= "U7" class= "CF1" >
<div class= "Box2" > here is the content 7</div>
</div>
<div id= "Y7" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R8" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T8" class= "Ce1" ></div>
<div id= "U8" class= "CF1" >
<div class= "Box2" > here is the content 8</div>
</div>
<div id= "y8" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>

<div class= "List" >
<a href= "http://www.zishu.cn" ><div id= "R9" class= "CD1" ></div></a>
<div class= "box" >
<div id= "T9" class= "Ce1" ></div>
<div id= "U9" class= "CF1" >
<div class= "Box2" > here is the content 9</div>
</div>
<div id= "Y9" class= "CG1" >
<a href= "http://www.zishu.cn" ><div class= "L1" ></div></a>
</div>
</div>
</div>


The above is the test code, CSS and content are not optimized, but the idea should be right! Rat 2006-05-17 Night

HTML code <! doctypehtml Public "-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "><ptml xmlns=" http://www.w3.org/1999/xhtml "><pead><meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/><title>tao BAO test</title><style>/* mouse www.zishu.cn */body{; padding:10px; font-size:12px; Line-height:1.7;text-align:center;} #zishu {width:780px; margin-left:auto; margin-right:auto;}. list{width:260px; height:155px; float:left; box{float:left; width:225px; box2{padding:0 5px 0 5px; Text-align:left;} #r1 {background-position:0;} #r2 {background-position: -19px;} #r3 {background-position: -38px;} #r4 {background-position: -57px;} #r5 {background-position: -76px;} #r6 {background-position: -95px;} #r7 {background-position: -114px;} #r8 {background-position: -133px;} #r9 {background-position: -152px;} #t1 {background-position:0px 0px;} #t2 {background-position:0px-5px;} #t3 {background-position:0px-10px;} #t4 {Background-position:0px-15px;} #t5 {background-position:0px-20px;} #t6 {background-position:0px-25px;} #t7 {background-position:0px-30px;} #t8 {background-position:0px-35px;} #t9 {background-position:0px-40px;} #y1 {background-position:0px 0px;} #y2 {background-position:0px-18px;} #y3 {background-position:0px-36px;} #y4 {background-position:0px-54px;} #y5 {background-position:0px-72px;} #y6 {background-position:0px-90px;} #y7 {background-position:0px-108px;} #y8 {background-position:0px-126px;} #y9 {background-position:0px-144px;} #u1 {border-right:1px solid #8A8FA0; border-left:1px solid #8A8FA0;} #u2 {border-right:1px solid #DF4493; border-left:1px solid #DF4493;} #u3 {border-right:1px solid #3B6DA5; border-left:1px solid #3B6DA5;} #u4 {border-right:1px solid #AA86CE; border-left:1px solid #AA86CE;} #u5 {border-right:1px solid #6EA314; border-left:1px solid #6EA314;} #u6 {border-right:1px solid #C55936; border-left:1px solid #C55936;} #u7 {border-right:1px solid #FAAD2D; border-left:1px Solid #FAAD2D;} #u8 {border-right:1px solid #86D500; border-left:1px solid #86D500;} #u9 {border-right:1px solid #2F8A8E; border-left:1px solid #2F8A8E;}. Cd1{background-image:url (attachments/month_0605/f2006517215038.gif); background-repeat:no-repeat;cursor:pointer ; float:left;width:19px; HEIGHT:142PX}. Ce1{background-image:url (attachments/month_0605/s2006517215046.gif); Background-repeat:no-repeat;height:5px;o Verflow:hidden}. Cf1{background: #fafafa; border-top:0;border-bottom:0; height:119px; Cg1{background-image:url (attachments/month_0605/32006517215056.gif); Background-repeat:no-repeat;height:18px;o Verflow:hidden}. L1{width:40px;height:20px;cursor:pointer; margin-left:180px;} </style></pead><body><div id= "Zishu" ><div class= "list" > <a href= "http://" www.zishu.cn "><divid=" R1 "class=" CD1 "></div></a> <div class=" box "><div id=" T1 "class= "Ce1" ></div> <div id= "U1" class= "CF1" > <div class= "Box2" > This is the content 1</div> </div> <div id= "y1" class= "CG1" > <ahref= "http://www.zishu.cn" ><divclass= "L1" ></div></a> </div> </div></div><div class= "list" > <a href= "http://www.zishu.cn" ><divid= "R2" class= "CD1" ></div></a> <div class= "box" ><div id= "T2" class= "Ce1" ></div> <div id= "U2" class= "Cf1" > <div class= "Box2" > here is content 2</div> </div><div id= "y2" class= "CG1" > <ahref = "http://www.zishu.cn" ><divclass= "L1" ></div></a> </div> </div></div>< div class= "List" > <a href= "http://www.zishu.cn" ><divid= "R3" class= "CD1" ></div></a> < div class= "box" ><div id= "T3" class= "Ce1" ></div> <div id= "U3" class= "CF1" > <div class= "Box2" > Here is the content 3</div> </div><div id= "Y3" class= "CG1" > <ahref= "http://www.zishu.cn" ><divclass = "L1" ></div></a> </div> </div></div><div class= "list" &Gt <a href= "http://www.zishu.cn" ><divid= "R4" class= "CD1" ></div></a> <div class= "box" > <div id= "T4" class= "Ce1" ></div> <div id= "U4" class= "CF1" > <div class= "Box2" > This is the content 4</div > </div><div id= "y4" class= "CG1" > <ahref= "http://www.zishu.cn" ><divclass= "L1" ></div ></a> </div> </div></div><div class= "list" > <a href= "http://www.zishu.cn" > <divid= "R5" class= "CD1" ></div></a> <div class= "box" ><div id= "T5" class= "Ce1" ></div > <div id= "U5" class= "CF1" > <div class= "Box2" > This is the content 5</div> </div><div id= "Y5" class= "CG1" "> <ahref=" http://www.zishu.cn "><divclass=" L1 "></div></a> </div> </div> </div><div class= "List" > <a href= "http://www.zishu.cn" ><divid= "R6" class= "CD1" ></div ></a> <div class= "box" ><div id= "T6" class= "Ce1" ></div> <div ID= "U6" class= "CF1" > <div class= "Box2" > This is content 6</div> </div><div id= "Y6" class= "CG1" > < ahref= "http://www.zishu.cn" ><divclass= "L1" ></div></a> </div> </div></div> <div class= "List" > <a href= "http://www.zishu.cn" ><divid= "R7" class= "CD1" ></div></a> <div class= "box" ><div id= "T7" class= "Ce1" ></div> <div id= "U7" class= "CF1" > <div class= "Box2" "> here is the content 7</div> </div><div id=" Y7 "class=" CG1 "> <ahref=" http://www.zishu.cn ">< divclass= "L1" ></div></a> </div> </div></div><div class= "list" > <a href= " http://www.zishu.cn "><divid=" R8 "class=" CD1 "></div></a> <div class=" box "><div id=" T8 "Class=" Ce1 "></div> <div id=" U8 "class=" CF1 "> <div class=" Box2 "> here is Content 8</div> </div> <div id= "y8" class= "CG1" > <ahref= "http://www.zishu.cn" ><divclass= "L1" ></div></a> </div> </div></div><div class= "list" > <a href= "http://www.zishu.cn" > <divid= "R9" class= "CD1" ></div></a> <div class= "box" ><div id= "T9" class= "Ce1" ></div > <div id= "U9" class= "CF1" > <div class= "Box2" > This is the content 9</div> </div><div id= "Y9" class= "CG1" "> <ahref=" http://www.zishu.cn "><divclass=" L1 "></div></a> </div> </div> </div><p> above for testing code, CSS and content are not optimized, but the idea should be right! Rat 2006-05-17 Night </p></div></body></ptml>
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]

Here are three photos applied to:








Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.