課程
/前端開發
/HTML/CSS
/企業網站綜合布局實戰
為什么顯示的是myBox{ width:200px height:100pt border:1pt solid #foo}
Hello World
2016-09-24
源自:企業網站綜合布局實戰 2-3
正在回答
需要把css代碼用<style></style>括起來
慕粉4052528 提問者
<style>
? ? .myBox{
? ? ? ? width:200px;
? ? ? ? height:100px;
? ? ? ? border:1px solid red;
? ? ? ? margin-top:10px;
? ? ? ? padding-left:15px;
? ? }
</style>
<div class="myBox">Hello World!</div>
舉報
本課程重點介紹HTML/CSS實現常見企業網站布局的方法
5 回答為什么代碼那么快
2 回答為什么代碼不縮進下?
3 回答代碼沒錯,但是logo出來為什么置頂啦
2 回答為什么沒有list.html的源代碼呢?
3 回答這是為什么?myFocus.set{一打完就提示代碼錯誤。
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-09-25
需要把css代碼用<style></style>括起來
2016-10-08
<style>
? ? .myBox{
? ? ? ? width:200px;
? ? ? ? height:100px;
? ? ? ? border:1px solid red;
? ? ? ? margin-top:10px;
? ? ? ? padding-left:15px;
? ? }
</style>
<div class="myBox">Hello World!</div>