基本完成。你自己再随便改改吧。<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" type="image/svg+xml" href="/favicon.ico" /> <title>Farm + Vue2</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Microsoft YaHei', sans-serif; background-color: #f5f5f5; padding: 20px; } .steps-container { display: flex; width: 100%; position: relative; margin: 20px 0; gap: 26px; } .step { flex: 1; display: flex; align-items: center; position: relative; background-color: #fff; padding: 7px 20px; z-index: 1; } .step:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; } .step:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; } .step-number { width: 30px; height: 30px; border-radius: 50%; background-color: #1e50a2; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 10px; } .step.inactive .step-number { background-color: #999; } .step-text { font-size: 16px; color: #333; } .step.active { background-color: #78d4ff; } .step.inactive { background-color: #f0f0f0; color: #999; } .step-arrow { position: absolute; right: -15px; width: 30px; height: 30px; background-color: #78d4ff; transform: rotate(45deg); z-index: 1; } </style> </head> <body> <div class="steps-container"> <div class="step active"> <div class="step-number">1</div> <div class="step-text">选择目录或软件</div> <div class="step-arrow"></div> </div> <div class="step inactive"> <div class="step-number">2</div> <div class="step-text">填写联系信息</div> <div class="step-arrow"></div> </div> <div class="step inactive"> <div class="step-number">3</div> <div class="step-text">完成申请</div> </div> </div> </body> </html>
基本完成。你自己再随便改改吧。
