Pure CSS + div ranking list

Source: Internet
Author: User
The code is as follows: Copy code

<! 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>
<Title> pure CSS + div ranking list </title>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312">
<! -- Add the following code between <Style type = "text/css">
<! --
* {Font-family: simsun; margin: 0px; padding: 0px ;}
Body {font-size: 12px; text-align: center ;}
Ul, li {list-style: none ;}
A {text-decoration: none; color: # 3381BF ;}
A: hover {text-decoration: underline ;}
# Movie_rank {height: 260px ;}
. Box2 {border: 1px solid # ADDFF2; text-align: left; overflow: hidden; color: # 9C9C9C; text-align: left ;}
. Box2 {margin-bottom: 7px ;}
. Box2 h2 {background: # EEF7FE; height: 21px; line-height: 21px; overflow-y: hidden; border-bottom: 1px solid # ADDFF2; color: #1974C8; font-size: 12px; padding: 0px 8px ;}
. Box2 h2. more {float: right; text-decoration: underline; background: url () no-repeat 100%-123px; padding-right: 8px; font-weight: normal ;}
. Box2 h2 span {margin-left: 5px; font-weight: normal; color: # B9B7B8 ;}
. Box2. inner {padding: 8px; line-height: 18px; overflow: hidden; color: #3083C7 ;}
. Box2 a {color: #3083C7; white-space: nowrap ;}
. Rank_list {line-height: 14px; margin: auto; padding-top: 5px ;}
. Rank_list li {height: 14px; margin-bottom: 8px; width: 290px; padding-left: 20px; white-space: nowrap; overflow: hidden; position: relative ;}
. Rank_list li. top3 em {background: # FFE4B7; border: 1px solid # FFBB8B; color: # FF6800 ;}
. Rank_list em {position: absolute; left: 0; top: 0; width: 12px; height: 12px; border: 1px solid # B1E0F4; color: # 6298CC; font-style: normal; font-size: 10px; font-family: Arial; background: # E6F0FD; text-align: center; line-height: 12px; overflow: hidden ;}
. Rank_list span {position: absolute; width: 60px; color: # B7B7B7; text-align: right; height: 14px; background: # fff; left: 110px ;}
# Movie_rank. rank_list span {position: absolute; width: 40px; color: # B7B7B7; text-align: right; height: 14px; background: # fff; left: 260px ;}
-->
</Style>
</Head>
<Body>
<! -- Add the following code to the <body> and </body> -->
<Div class = "box2" id = "movie_rank">
<H2> <a href = "#" class = "more"> more </a> source code ranking <Div class = "inner">
<Ul class = "rank_list">
<Li class = "top3"> <em> 1 </em> <a href = "#"> AEAN An-Upload no-component Upload class </a> <span> 621 </span> </li>
<Li class = "top3"> <em> 2 </em> <a href = "#"> EasySlide jQuery Image slideshow </a> <span> 528 </span> </li>
<Li class = "top3"> <em> 3 </em> <a href = "#"> General Ajax refresh commendation and verification </a> <span> 432 </span> </li>
<Li> <em> 4 </em> <a href = "#"> support for Chinese mouse acquisition VB source code </a> <span> 374 </span> </li>
<Li> <em> 5 </em> <a href = "#"> General Ajax recognition and verification </a> <span> 256 </span> </ li>
<Li> <em> 6 </em> <a href = "#"> EasySlide jQuery Image wheel display </a> <span> 185 </span> </li>
<Li> <em> 7 </em> <a href = "#"> support for Chinese mouse acquisition VB source code </a> <span> 95 </span> </li>
<Li> <em> 8 </em> <a href = "#"> simplified link prompt box component </a> <span> 85 </span> </li>
<Li> <em> 9 </em> <a href = "#"> lightbox-like image display plug-in </a> <span> 51 </span> </li>
<Li> <em> 10 </em> <a href = "#"> General Ajax recognition and verification </a> <span> 32 </span> </ li>
</Ul>
</Div>
</Div>
</Body>
</Html>

Related Article

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.