javascript - main head .intro-text{width:40%} main head{display:flex}為何無(wú)效?
問(wèn)題描述
<!DOCTYPE html><html lang='en'>
<head>
<meta charset='UTF-8'><title>Build a Personal Portfolio Webpage</title><link rel='stylesheet' href='http://www.4tl426be.cn/wenda/rule/bootstrap-Normalize.css'><link rel='stylesheet' ><link rel='stylesheet' href='http://www.4tl426be.cn/wenda/main.css'><style> body{font-size:20px} main{margin-top:80px;padding:30px 50px} main head{display:flex} main head .intro-text{width:40%}
/# sourceMappingURL=main.css.map /
</style>
</head>
<body>
<header class='navbar navbar-inverse navbar-fixed-top'> <nav class='container'><a href='http://www.4tl426be.cn/wenda/4784.html#'>Free Code Camp</a><ul class='nav navbar-nav navbar-text navbar-right'> <li><a href='http://www.4tl426be.cn/wenda/4784.html#'>about</a></li> <li><a href='http://www.4tl426be.cn/wenda/4784.html#portfolio'>portfolio</a></li> <li><a href='http://www.4tl426be.cn/wenda/4784.html#contact'>contact</a></li></ul> </nav></header><main class='container'> <header><p class='intro-text'> <p>Front-End Developer and UX/UI designer, with practical experience in project management, branding strategy, and creative direction; devoted to functional programming and information architecture.</p> <hr> <span> Web Developer - User Experience Designer - Graphic Artist </span></p><img src='http://qlip.in/images/avatar.jpg' alt='666'> </header> </main>
</body>
</html>
/# sourceMappingURL=main.css.map /
問(wèn)題解答
回答1:body {font-size:20px}main {margin-top:80px;padding:30px 50px}main header {display:flex}main header .intro-text {width:40%}
是不是因?yàn)閼?yīng)該是header啊??你寫(xiě)成了head。
相關(guān)文章:
1. css3 - 純css實(shí)現(xiàn)點(diǎn)擊特效2. javascript - 關(guān)于apply()與call()的問(wèn)題3. java - 在用戶不登錄的情況下,用戶如何添加保存到購(gòu)物車?4. Python中使用超長(zhǎng)的List導(dǎo)致內(nèi)存占用過(guò)大5. javascript - 有適合開(kāi)發(fā)手機(jī)端Html5網(wǎng)頁(yè)小游戲的前端框架嗎?6. 安全性測(cè)試 - nodejs中如何防m(xù)ySQL注入7. javascript - JS變量被清空8. java - spring boot 如何打包成asp.net core 那種獨(dú)立應(yīng)用?9. html - eclipse 標(biāo)簽錯(cuò)誤10. javascript - axios請(qǐng)求回來(lái)的數(shù)據(jù)組件無(wú)法進(jìn)行綁定渲染
