当前位置:网站首页>About weights exercise
About weights exercise
2022-06-12 08:41:00 【Little boy who likes hot pot】
1. Weight is high or low , But the weight of inheritance is 0
2. Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Weight exercise </title>
<style>
.nav {
color: red;
}
/* The weight of inheritance is 0 */
li {
color: pink;
}
</style>
</head>
<body>
<ul class="nav">
<li> Four tragedies of life </li>
<li> There is no broadband at home </li>
<li> Not fast enough </li>
<li> There is no traffic on the mobile phone </li>
<li> No school wifi</li>
</ul>
</body>
</html>
3. Running effect :

4. Take the first one. li Change the color of to blue
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Weight exercise </title>
<style>
.nav li{
color: red;
}
/* Take the first one. li Color bold */
/* blue The weight is 10 .nav .blue 20 */
.nav .blue{
color: blue;
font-weight: 700;
}
</style>
</head>
<body>
<ul class="nav">
<li class="blue"> Four tragedies of life </li>
<li> There is no broadband at home </li>
<li> Not fast enough </li>
<li> There is no traffic on the mobile phone </li>
<li> No school wifi</li>
</ul>
</body>
</html>
Running effect :

a key : Higher weight , Give priority to implementation
边栏推荐
- 安科瑞消防应急照明和疏散指示系统
- The Three Kingdoms kill the surrounding areas -------- explanation of the pig Kingdom kill problem
- 正则校验用户名
- Shell基本语法--算数运算
- (p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef
- In depth interpretation of 5g key technologies
- Configuration and principle of MSTP
- Regular expressions in JS
- Adjust SVG width and height
- Audio and video engineer (Preliminary) (I) basic concepts of audio and video
猜你喜欢

QT realizes multi screen and multi-resolution adaptation

安科瑞电动机保护器具有过载反时限、过载定时限、接地、起动超时、漏电、欠载、断相、堵转等功能

(p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef

Engineers learn music theory (I) try to understand music

Engineers learn music theory (II) scale and tendency

(p19-p20) delegate constructor (proxy constructor) and inheritance constructor (using)

The difference between deep copy and shallow copy

In the era of intelligent manufacturing, how do enterprises carry out digital transformation

Oracle installation details (verification)

【指針進階三】實現C語言快排函數qsort&回調函數
随机推荐
[advanced pointer 2] array parameter transfer & pointer parameter transfer & function pointer & function pointer array & callback function
QT realizes multi screen and multi-resolution adaptation
When converting tensor to ndarray in tensorflow, the run or Eval function is constantly called in the loop, and the code runs more and more slowly!
Handling abnormal data
Why should enterprises implement MES? What are the specific operating procedures?
正则校验用户名
ctfshow web4
At present, MES is widely used. Why are there few APS scheduling systems? Why?
(P14) use of the override keyword
The era of post MES system has come gradually
Adjust SVG width and height
Install iptables services and open ports
记Date类型的一次踩坑
Detailed explanation of private, public and interface attributes in cmake
Shell基本语法--算数运算
2022.6.9-----leetcode. four hundred and ninety-seven
Encapsulate the amount input box component.
网站Colab与Kaggle
【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C
Installation series of ROS system (I): installation steps