我試圖復制一些網頁來學習html,并且css.when我試圖創建righ元素下面給出的類似標題的圖像,這是abastract,幫助中心位于一個元素下面。another.i想要對齊這兩個項目horizontally.also我無法更改相同項目的字體顏色 我想要的輸出: 我現在的輸出; [![ ]3]3
我無法訪問圖像。這就是你要找的嗎? * { padding: 0px; margin: 0px; } header { background-color: black; height: 100px; } .menu { display: flex; flex-direction: row; justify-content: space-between; padding: 20px; color: #fff; } .menu ul { list-style: none; display:flex; } .menu ul li a{ color: white; text-decoration: none; margin: 10px; } <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <div class="menu"> <ul> <li><a href="#">Abstract</a></li> <li><a href="#">Help center</a></li> </ul> <div class="btn"> <button class="submit">Submit</button> <button class="signin">Signin</button> </div> </div> </header> </body> </html>
我無法訪問圖像。這就是你要找的嗎?