当前位置:网站首页>Class selectors and using pseudo class selectors with
Class selectors and using pseudo class selectors with
2022-06-12 10:17:00 【Lingwl】
The fact proved that , pure CSS You can't do that , Give it up , my HTML The code is as follows
<div class="banner">
<aside>
<h3> Taobao service </h3><a> more ></a>
<ul></ul>
<h4><div class="icon"></div> shopping </h4>
<ul>
<li> Auctions </li>
<li> Flea Street </li>
<li> Gold coins </li>
<li> Trial Center </li>
<li> e-book </li>
<li> Buy... All over the world </li>
</ul>
<br />
<h4><div class="icon"></div> life </h4>
<br />
<ul>
<li> lottery </li>
<li> Cinema ticket </li>
<li> insurance </li>
<li> video </li>
<li> Hydropower coal </li>
<li> conduct financial transactions </li>
<li> Medical Museum </li>
</ul>
<br />
<h4><div class="icon"></div> Interaction </h4>
<br />
<ul>
<li> Love shopping </li>
<li> Stubborn rabbit </li>
<li> cyber model </li>
<li> Taodoll </li>
<li> LOHAS +</li>
<li>U standing </li>
</ul>
<br />
<h4><div class="icon"></div> Tools </h4>
<br />
<ul>
<li> Ali Wangwang </li>
<li> Alipay </li>
<li> browser </li>
</ul>
<br />
<h4><div class="icon"></div> other </h4>
<br />
<ul>
<li> Good infinite </li>
<li> One museum in one city </li>
<li> Brand Specials </li>
<li> Brand Street </li>
<li> Brand group purchase </li>
<li> Original by tmall </li>
</ul>
</aside>CSS The code is as follows
.icon{
height: 20px;
width: 20px;
display: inline-block;
}
.banner h4 > div:nth-child(2){
background: url(../img/icon.png) no-repeat fixed ;
}
.icon:nth-child(2){
background: url(../img/icon.png) no-repeat fixed ;
}
Use class to reuse nth-child(1) All elements that have been selected by the class selector will be selected , use nth-child(2) Words , You can't choose any of them
边栏推荐
- np. Meshgrid() function and coordinate position generation in 3D space and numpy Introduction to repeat() function
- 93. 获得内网的所有IP地址
- 7-4 network red dot punch in strategy (DFS)
- Using C language code to realize factory LCD RGB test program
- [Wayland] Wayland agreement description
- Transport layer protocol -- TCP protocol
- 93. obtain all IP addresses of the Intranet
- Halcon combined with C # to detect surface defects -- affine transformation (III)
- 不需要安装防毒软件的系统Chromebook
- Implementation principle of redisson distributed lock
猜你喜欢
![Data processing and visualization of machine learning [iris data classification | feature attribute comparison]](/img/a3/1d181b9dd5268e13cc276a78862d1f.png)
Data processing and visualization of machine learning [iris data classification | feature attribute comparison]

JVM (III) Virtual machine performance monitoring & fault handling tool

Circuitbreaker fuse of resilience4j - Summary

Chapter 3 search

Dynamic proxy

学生管理系统

远程桌面不能复制粘贴解决办法

markdown_ Picture side by side scheme

Circuitbreaker fuse of resilience4j - circuitbreakerevent event

How to do industry analysis
随机推荐
IoT简介
Auto. JS learning note 9: basic methods such as using the script engine, starting the script file with the specified path, and closing
JVM (VI) Virtual machine bytecode execution engine (with stack execution process and bytecode instruction table)
Enumerate all USB device codes
Jetpack架构组件学习(3)——Activity Results API使用
[Wayland] Weston multi screen display
【ParquetEncodingException: empty fields are illegal, the field should be ommited completely instead
C language recursive folder code
Circuitbreaker fuse of resilience4j - circuitbreakerregistry register
Jump to wechat in app and open wechat
Circuitbreaker fuse of resilience4j - circuitbreakerevent event
Circuitbreaker fuse of resilience4j - Summary
【MySQL】sql_ Model mode
Introduction to on-line circuit simulation and open source electronic hardware design
Circuitbreaker fuse of resilience4j -- Measurement of circuitbreakermetrics index
[MySQL] index invalidation and index optimization
[chromium] location information kernel debugging
Circuitbreaker fuse of resilience4j - circuitbreakerconfig configuration
[CEGUI] log system
JVM (IV) Class file structure (complete parsing of bytecode attached)