課程
/前端開發(fā)
/HTML/CSS
/企業(yè)網(wǎng)站綜合布局實(shí)戰(zhàn)
有的題不會(huì)做,看描述也看不懂,想問問有沒有代碼答案參考
2017-11-06
源自:企業(yè)網(wǎng)站綜合布局實(shí)戰(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>無標(biāo)題文檔</title>
<style type="text/css">
/*在此定義相應(yīng)的類選擇器,并根據(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">
<!--在此添加相應(yīng)的div標(biāo)簽-->
<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>
舉報(bào)
本課程重點(diǎn)介紹HTML/CSS實(shí)現(xiàn)常見企業(yè)網(wǎng)站布局的方法
1 回答練習(xí)答案,不會(huì)的看這里
2 回答有標(biāo)準(zhǔn)答案嗎?求大神幫看看有什么問題?
2 回答任務(wù)提示有問題呀~ 奉上標(biāo)準(zhǔn)答案!
3 回答為啥他答案我看了看,好像沒有那個(gè)藍(lán)色的圖片,答案是不是有地方漏了啊!
2 回答關(guān)于這個(gè)練習(xí)的幾個(gè)問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
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>無標(biāo)題文檔</title>
<style type="text/css">
/*在此定義相應(yīng)的類選擇器,并根據(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">
<!--在此添加相應(yīng)的div標(biāo)簽-->
<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>無標(biāo)題文檔</title>
<style type="text/css">
.mainBox{
? ? /*margin:0 auto;*/
? ? width:960px;
? ? height:300px;
? ? background:blue;
? ??
}
/*在此定義相應(yīng)的類選擇器,并根據(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>