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://www.cgvv.com.cn/wenda/rule/bootstrap-Normalize.css'><link rel='stylesheet' ><link rel='stylesheet' href='http://www.cgvv.com.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.cgvv.com.cn/wenda/4784.html#'>Free Code Camp</a><ul class='nav navbar-nav navbar-text navbar-right'> <li><a href='http://www.cgvv.com.cn/wenda/4784.html#'>about</a></li> <li><a href='http://www.cgvv.com.cn/wenda/4784.html#portfolio'>portfolio</a></li> <li><a href='http://www.cgvv.com.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%}
是不是因為應(yīng)該是header啊??你寫成了head。
相關(guān)文章:
1. 為什么我ping不通我的docker容器呢???2. android - webview 自定義加載進度條3. 將SQLServer數(shù)據(jù)同步到MySQL 用什么方法?4. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題5. numpy - python [:,2][:,None]是什么意思6. linux - openSUSE 上,如何使用 QQ?7. javascript - 微信音樂分享8. mysql優(yōu)化 - 如何解決 MySQL 導(dǎo)入約 2G 的 SQL 報錯?9. javascript - vue引入微信jssdk 配置在哪個生命周期調(diào)取接口配置?10. javascript - 微信小程序限制加載個數(shù)
