課程
/前端開發
/HTML/CSS
/企業網站綜合布局實戰
有的題不會做,看描述也看不懂,想問問有沒有代碼答案參考
2017-11-06
源自:企業網站綜合布局實戰 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">
/*在此定義相應的類選擇器,并根據要求設置相關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實現常見企業網站布局的方法
1 回答練習答案,不會的看這里
2 回答有標準答案嗎?求大神幫看看有什么問題?
2 回答任務提示有問題呀~ 奉上標準答案!
3 回答為啥他答案我看了看,好像沒有那個藍色的圖片,答案是不是有地方漏了?。?/p>
2 回答關于這個練習的幾個問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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">
/*在此定義相應的類選擇器,并根據要求設置相關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;
? ??
}
/*在此定義相應的類選擇器,并根據要求設置相關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>