亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

這是跟老師一起做的,為何box1和老師所展現的box1不一樣

<style type="text/css">

.box1{width=60%;height:40px;background:#00F;position:absolute;}

.box2{width:70%;height:30px;background:#C00;position:fixed;}

.content{width:80%;height:160px;background:green;}

.wrap{width:99%;padding:10px;height:400px;background:#999;}

.box{width:88%;height:200px;background:#FFCC00;}

</style>

</head>


<body>

<div class="wrap">

? <div class="box">

<div class="box1">box1</div>

<div class="box2">box2</div>

</div>

<div class="content">centent</div>

</div>

</body>


正在回答

1 回答

.box1{width=60%;height:40px;background:#00F;position:absolute;}


width:60%;

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
固定層效果
  • 參與學習       51893    人
  • 解答問題       151    個

運用屬性值就輕松實現網頁固定層效果

進入課程

這是跟老師一起做的,為何box1和老師所展現的box1不一樣

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號