学习第一天完
This commit is contained in:
39
前端Web(HTML+CSS)/10.tlias案例-顶部导航栏.html
Normal file
39
前端Web(HTML+CSS)/10.tlias案例-顶部导航栏.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tlias智能学习辅助系统</title>
|
||||
<style>
|
||||
/* 顶部导航栏样式 */
|
||||
.navbar {
|
||||
background-color: #767474; /* 灰色背景 */
|
||||
padding: 15px 20px;
|
||||
display: flex; /* 水平排列 */
|
||||
justify-content: space-between; /* 两侧对齐 */
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.navbar h1 {
|
||||
margin: 0;
|
||||
font-weight: bold; /* 加粗显示标题 */
|
||||
}
|
||||
|
||||
.navbar a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.navbar a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 顶部导航栏 -->
|
||||
<div class="navbar">
|
||||
<h1>Tlias智能学习辅助系统</h1> <!-- 标题居左 -->
|
||||
<a href="#">退出登录</a> <!-- 退出登录链接居右 -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user