javascript - main head .intro-text{width:40%} main head{display:flex}為何無效?
問題描述
<!DOCTYPE html><html lang='en'>
<head>
<meta charset='UTF-8'><title>Build a Personal Portfolio Webpage</title><link rel='stylesheet' href='http://m.4tl426be.cn/wenda/rule/bootstrap-Normalize.css'><link rel='stylesheet' ><link rel='stylesheet' href='http://m.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://m.4tl426be.cn/wenda/4784.html#'>Free Code Camp</a><ul class='nav navbar-nav navbar-text navbar-right'> <li><a href='http://m.4tl426be.cn/wenda/4784.html#'>about</a></li> <li><a href='http://m.4tl426be.cn/wenda/4784.html#portfolio'>portfolio</a></li> <li><a href='http://m.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 /
問題解答
回答1:body {font-size:20px}main {margin-top:80px;padding:30px 50px}main header {display:flex}main header .intro-text {width:40%}
是不是因為應該是header?。??你寫成了head。
相關文章:
1. mysql - 分庫分表、分區、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處2. mysql - 這個數據庫合計用 視圖做,和直接算好存在數據庫里,到時候調用起來哪個快?3. python - 在django內如何讓后臺增加的文章自動加上是哪個用戶編輯的呢?4. centos7 編譯安裝 Python 3.5.1 失敗5. 如何修改phpstudy的phpmyadmin放到其他地方6. javascript - vue-echarts-v3使用的過程中折線圖區域呈漸變色。7. 人工智能 - python 機器學習 醫療數據 怎么學8. 關于Mysql聯合查詢9. pip安裝提示Twisted錯誤問題(Python3.6.4安裝Twisted錯誤)10. c++ - 請問MySQL_Connection::isReadOnly 怎么解決?
