課程
/前端開發
/HTML/CSS
/企業網站綜合布局實戰
不知道為什么一直沒有邊框顯示
2017-03-04
源自:企業網站綜合布局實戰 2-3
正在回答
height,padding—left結尾是分號,而且<style>最好寫成<style type="text/css">
因為你height和padding—left哪里是冒號,不是分號.......
<style type="text/css">
? ? .myBox{
? ? ? ? width:200px;
? ? ? ? height:180px;
? ? ? ? border:1px solid red;
? ? ? ? padding-left:15px;
? ? ? ? margin-top:10px;
? ? }
</style>
</head> ? ??
<body>
<div class="myBox">Hello World</div>
</body>
</html>?
你試試這個代碼
舉報
本課程重點介紹HTML/CSS實現常見企業網站布局的方法
2 回答為什么無法顯示出邊框
4 回答是哪里錯了?為什么顯示不出邊框
2 回答為什么我的顯示不出來呢?
2 回答麻煩大家看看為什么我的邊框顯示不了呢?
2 回答您好,為什么我的邊框顯示不出來?明明設置了呀,幫我看看這個圖片吧!
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-01-14
height,padding—left結尾是分號,而且<style>最好寫成<style type="text/css">
2017-03-14
因為你height和padding—left哪里是冒號,不是分號.......
2017-03-04
<style type="text/css">
? ? .myBox{
? ? ? ? width:200px;
? ? ? ? height:180px;
? ? ? ? border:1px solid red;
? ? ? ? padding-left:15px;
? ? ? ? margin-top:10px;
? ? }
</style>
</head> ? ??
<body>
<div class="myBox">Hello World</div>
</body>
</html>?
你試試這個代碼