課程
/前端開發(fā)
/HTML/CSS
/企業(yè)網(wǎng)站綜合布局實戰(zhàn)
為什么顯示的是myBox{ width:200px height:100pt border:1pt solid #foo}
Hello World
2016-09-24
源自:企業(yè)網(wǎng)站綜合布局實戰(zhàn) 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實現(xiàn)常見企業(yè)網(wǎng)站布局的方法
5 回答為什么代碼那么快
2 回答為什么代碼不縮進下?
3 回答代碼沒錯,但是logo出來為什么置頂啦
2 回答為什么沒有l(wèi)ist.html的源代碼呢?
3 回答這是為什么?myFocus.set{一打完就提示代碼錯誤。
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
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>