摘要: 相对定位和绝对定位的区别: position: relative(相对定位):相对定位是相对于元素在文档中的初始位置 首先它出现在它所在的位置上(即不设置position时的位置,然后通过设置垂直或水平位置,让这个元素“相对于”它的原始起点进行移动 position: absolute(绝对定位): 阅读全文
posted @ 2021-11-01 19:04 牵着宇宙来遛弯 阅读(139) 评论(0) 推荐(0)
摘要: 头部: html部分: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/toubu.css"/> </head> 阅读全文
posted @ 2021-10-29 19:40 牵着宇宙来遛弯 阅读(55) 评论(0) 推荐(0)
摘要: css部分: .content{ width: 1000px; margin: 0 auto;} .content .nav{ margin: 15px 0;} .content .nav a{ text-decoration: none;/*下划线*/ color: #333333; margin 阅读全文
posted @ 2021-10-28 19:57 牵着宇宙来遛弯 阅读(97) 评论(0) 推荐(0)
摘要: CSS部分: body{ background-color: lightgrey;} .content{ width:1000px; margin: 0 auto;} .content ul{ padding-left: 0;} .content ul li{ display: inline-blo 阅读全文
posted @ 2021-10-27 19:01 牵着宇宙来遛弯 阅读(81) 评论(0) 推荐(0)
摘要: CSS部分: .content{ background-color: #CCCCCC;} .content .type-container{ background-color: white; height: 160px;} .content .type{ border: 1px solid #ccc 阅读全文
posted @ 2021-10-26 17:18 牵着宇宙来遛弯 阅读(43) 评论(0) 推荐(0)
摘要: CSS部分: .content{ width:1000px; margin: 0 auto;} .content h1{ color: #de4767; text-align: center; font-size: 44px; font-weight: normal;} .content ul{ p 阅读全文
posted @ 2021-10-25 20:01 牵着宇宙来遛弯 阅读(56) 评论(0) 推荐(0)