課程
/前端開發(fā)
/HTML/CSS
/企業(yè)網(wǎng)站綜合布局實戰(zhàn)
有的題不會做,看描述也看不懂,想問問有沒有代碼答案參考
2017-11-06
源自:企業(yè)網(wǎng)站綜合布局實戰(zhàn) 2-6
正在回答
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<style type="text/css">
/*在此定義相應的類選擇器,并根據(jù)要求設(shè)置相關(guān)CSS屬性*/
.mainBox{
? ? width:960px;
? ? background-color:#cff;
? ? overflow:hidden;
}
.leftBox{
? ? float:left;
? ? width:740px;
? ? height:300px;
? ? background-color:#c9f;
.rightBox{
width: 210px;
height: 300px;
background-color:#fcf;
float: right;
</style>
</head>
<body>
<div class="mainBox">
<!--在此添加相應的div標簽-->
<div class="leftBox"></div>
<div class="rightBox"></div>
</div>
</body>
</html>
默然回首5054 提問者
? ? /*margin:0 auto;*/
? ? background:blue;
? ??
? ? background: red;
? ? float:left
? ? width:210px;
? ? background: yellow;
? ? float:right;
? ? <div class="leftBox"></div>
? ? <div class="rightBox"></div>
舉報
本課程重點介紹HTML/CSS實現(xiàn)常見企業(yè)網(wǎng)站布局的方法
1 回答練習答案,不會的看這里
2 回答有標準答案嗎?求大神幫看看有什么問題?
2 回答任務提示有問題呀~ 奉上標準答案!
3 回答為啥他答案我看了看,好像沒有那個藍色的圖片,答案是不是有地方漏了??!
2 回答關(guān)于這個練習的幾個問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-11-06
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<style type="text/css">
/*在此定義相應的類選擇器,并根據(jù)要求設(shè)置相關(guān)CSS屬性*/
.mainBox{
? ? width:960px;
? ? background-color:#cff;
? ? overflow:hidden;
}
.leftBox{
? ? float:left;
? ? width:740px;
? ? height:300px;
? ? background-color:#c9f;
}
.rightBox{
width: 210px;
height: 300px;
background-color:#fcf;
float: right;
}
</style>
</head>
<body>
<div class="mainBox">
<!--在此添加相應的div標簽-->
<div class="leftBox"></div>
<div class="rightBox"></div>
</div>
</body>
</html>
2018-06-08
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<style type="text/css">
.mainBox{
? ? /*margin:0 auto;*/
? ? width:960px;
? ? height:300px;
? ? background:blue;
? ??
}
/*在此定義相應的類選擇器,并根據(jù)要求設(shè)置相關(guān)CSS屬性*/
.leftBox{
? ? width:740px;
? ? height:300px;
? ? background: red;
? ? float:left
}
.rightBox{
? ? width:210px;
? ? height:300px;
? ? background: yellow;
? ? float:right;
}
</style>
</head>
<body>
<div class="mainBox">
? ? <div class="leftBox"></div>
? ? <div class="rightBox"></div>
</div>
</body>
</html>