search
HomeWeb Front-endCSS TutorialHow to implement special effects of css list ranking list

This list is suitable for news and download rankings. It can distinguish colors and adopts one row and two columns layout. This is the most standard CSS layout method and has detailed implementation code. If you are interested, you can refer to it. I hope it can help you

CSS list making. This is a relatively basic technique, but many friends still can’t use it well. Then take a look at this list. It is suitable for news and download rankings, and you can distinguish colors. Using one row and two columns layout is the most standard CSS layout method.

<!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=gb2312" /> 
<title>css排行榜</title> 
<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 a.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> 
<p class="box2" id="movie_rank"> 
<h2 id="a-nbsp-href-nbsp-class-more-更多-a-源码排行"><a href="#" class="more">更多</a>源码排行</h2> 
<p class="inner"> 
<ul class="rank_list"> 
<li class="top3"><em>1</em><a href="#">艾恩An-Upload 无组件上传类</a><span>21</span></li> 
<li class="top3"><em>2</em><a href="#">EasySlide jQuery图片轮显</a><span>528</span></li> 
<li class="top3"><em>3</em><a href="#">通用Ajax无刷新表彰验证类</a><span>232</span></li> 
<li><em>4</em><a href="#">支持中文的鼠标取词VB源码</a><span>74</span></li> 
<li><em>5</em><a href="#">通用Ajax无刷新表彰验证类</a><span>56</span></li> 
<li><em>6</em><a href="#">EasySlide jQuery图片轮显</a><span>85</span></li> 
<li><em>7</em><a href="#">支持中文的鼠标取词VB源码</a><span>25</span></li> 
<li><em>8</em><a href="#">多样式链接提示框组件</a><span>85</span></li> 
<li><em>9</em><a href="#">类似lightbox的无刷新图片显示插件</a><span>41</span></li> 
<li><em>10</em><a href="#">通用Ajax无刷新表彰验证类</a><span>62</span></li> 
</ul> 
</p> 
</p> 
</body> 
</html>

The above is the entire content of this article. I hope it will be helpful to everyone’s study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

Pure CSS to achieve speech and voice bubble effects

CSS Sprite analysis of intercepting small images from large images

The above is the detailed content of How to implement special effects of css list ranking list. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is CSS Grid?What is CSS Grid?Apr 30, 2025 pm 03:21 PM

CSS Grid is a powerful tool for creating complex, responsive web layouts. It simplifies design, improves accessibility, and offers more control than older methods.

What is CSS flexbox?What is CSS flexbox?Apr 30, 2025 pm 03:20 PM

Article discusses CSS Flexbox, a layout method for efficient alignment and distribution of space in responsive designs. It explains Flexbox usage, compares it with CSS Grid, and details browser support.

How can we make our website responsive using CSS?How can we make our website responsive using CSS?Apr 30, 2025 pm 03:19 PM

The article discusses techniques for creating responsive websites using CSS, including viewport meta tags, flexible grids, fluid media, media queries, and relative units. It also covers using CSS Grid and Flexbox together and recommends CSS framework

What does the CSS box-sizing property do?What does the CSS box-sizing property do?Apr 30, 2025 pm 03:18 PM

The article discusses the CSS box-sizing property, which controls how element dimensions are calculated. It explains values like content-box, border-box, and padding-box, and their impact on layout design and form alignment.

How can we animate using CSS?How can we animate using CSS?Apr 30, 2025 pm 03:17 PM

Article discusses creating animations using CSS, key properties, and combining with JavaScript. Main issue is browser compatibility.

Can we add 3D transformations to our project using CSS?Can we add 3D transformations to our project using CSS?Apr 30, 2025 pm 03:16 PM

Article discusses using CSS for 3D transformations, key properties, browser compatibility, and performance considerations for web projects.(Character count: 159)

How can we add gradients in CSS?How can we add gradients in CSS?Apr 30, 2025 pm 03:15 PM

The article discusses using CSS gradients (linear, radial, repeating) to enhance website visuals, adding depth, focus, and modern aesthetics.

What are pseudo-elements in CSS?What are pseudo-elements in CSS?Apr 30, 2025 pm 03:14 PM

Article discusses pseudo-elements in CSS, their use in enhancing HTML styling, and differences from pseudo-classes. Provides practical examples.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function