当前位置:网站首页>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
边栏推荐
- 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!
- Engineers learn music theory (I) try to understand music
- Hands on deep learning -- weight decay and code implementation
- (p15-p16) optimization of the right angle bracket of the template and the default template parameters of the function template
- Convert spaces to < br / > newline labels
- Code generation tool Autocode for XML Publishing
- 电气火灾探测器对各用电回路进行实时监控
- 记Date类型的一次踩坑
- Error: ER_ NOT_ SUPPORTED_ AUTH_ MODE: Client does not support authentication protocol requested ... ...
- 调整svg宽高
猜你喜欢

What kind of sparks will be generated when the remote sensing satellite meets the Beidou navigation satellite?

Handling abnormal data

Model Trick | CVPR 2022 Oral - Stochastic Backpropagation A Memory Efficient Strategy

【指针进阶三】实现C语言快排函数qsort&回调函数

深拷贝与浅拷贝的区别

Hands on deep learning -- discarding method and its code implementation

Hands on deep learning -- image classification dataset fashion MNIST

三国杀周边--------猪国杀题解

MES helps enterprises to transform intelligently and improve the transparency of enterprise production

安科瑞电动机保护器具有过载反时限、过载定时限、接地、起动超时、漏电、欠载、断相、堵转等功能
随机推荐
Figure neural network makes Google maps more intelligent
Vscode download slow solution
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array
Seurat package addmodulescore is used for bulk RNA SEQ data
Calling stored procedures in mysql, definition of variables,
Hands on deep learning -- activation function and code implementation of multi-layer perceptron
The electrical fire detector monitors each power circuit in real time
The Three Kingdoms kill the surrounding areas -------- explanation of the pig Kingdom kill problem
动态创建表单并提交
Loading font component loading effect
Difference between binary GB and gib
【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C
报错:文件夹在另一个程序中打开无法删除怎么办
Error: what if the folder cannot be deleted when it is opened in another program
The newline character with in the string is converted to an array
Call method and apply method
了结非对称密钥
Installation of Shengxin R package
Engineers learn music theory (III) interval mode and chord
(p21-p24) unified data initialization method: List initialization, initializing objects of non aggregate type with initialization list, initializer_ Use of Lisy template class