当前位置:网站首页>Wonderful frog -- how simple can it be to abandon the float and use the navigation bar set by the elastic box
Wonderful frog -- how simple can it be to abandon the float and use the navigation bar set by the elastic box
2022-07-28 15:06:00 【Dream rain in flowers】
Elastic container : display: flex;( Block level )
Elastic element : Elastic container direct Subelement , Use attributes : stretch :flex-grow: 1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> * {
margin: o;
padding: 0;
list-style: none;
}
.nav {
width: 1260px;
height: 40px;
background-color: lightgray;
margin: 50px auto;
display: flex;
}
.nav li {
flex-grow: 1
}
.nav a {
line-height: 40px;
font-size: 16px;
color: #808080;
text-align: center;
display: block;
text-decoration: none;
}
.nav a:hover {
color: #fff;
background-color: #636363;
}
</style>
</head>
<body>
<ul class="nav">
<li><a href="#">HTML/CSS</a></li>
<li><a href="#">Brower Side</a></li>
<li><a href="#">Sever Side</a></li>
<li><a href="#">Programming</a></li>
<li><a href="#">XML</a></li>
<li><a href="#">Web Building</a></li>
<li><a href="#">Reference</a></li>
</ul>
</body>
</html>
Generate navigation bar in one step :
边栏推荐
- 7月29日 ApacheCon|Apache Pulsar 在 vivo 的探索与实践 即将开播
- UTF-8、UTF-16 和 UTF-32 字符编码之间的区别?[图文详解]
- View gnuradio version
- QT qlineedit, qtextedit, qplaintextedit differences
- RepVGG论文详解以及使用Pytorch进行模型复现
- Pytorch GPU installation
- How to gracefully encapsulate anonymous inner classes (DSL, high-order functions) in kotlin
- VTK vtkcontourwidget extracts regions of interest
- First class exercise
- On July 29, apachecon | apachepulsar's exploration and practice in vivo will be broadcast soon
猜你喜欢

Picture Trojan principle production prevention

SSH service
![SQL error [1810] [22008]: ora-01810: format code occurs twice](/img/3b/4cbc0efe23f6f71163a115cd098ea9.png)
SQL error [1810] [22008]: ora-01810: format code occurs twice

Google lab usage notes

C language related programming exercises

SSRF vulnerability

buuctf_ php

58 sub station Anju, broker marketing management platform login interface encryption reverse

PS how to crop photos

Establishment and traversal of binary tree (implemented in C language)
随机推荐
SystemVerilog
QT environment cannot run error set
Machine learning related concepts
Various pitfalls encountered in UI development
SQL labs detailed problem solving process (less1-less10)
多商户商城系统功能拆解17讲-平台端订单列表
Swiftui layout - size (top)
Installing redis in Linux
Introduction to MITK
Install scikit learn journey
A problem -- about dragging div in JS, when I change div to round, there will be a bug
How to perform batch operations in core data
云计算需要考虑的安全技术列举
CCSP 云安全设计原则都有哪些
RepVGG论文详解以及使用Pytorch进行模型复现
On July 29, apachecon | apachepulsar's exploration and practice in vivo will be broadcast soon
How to gracefully encapsulate anonymous inner classes (DSL, high-order functions) in kotlin
QT qbuttongroup realizes single selection and multiple selection
Several methods of opening URL in swiftui view
linear transformation