為什么我的還是展示的事一列排列的呢
<style type="text/css">
div{
?? ?border:2px red solid;
??? width:200px;
??? height:400px;
?? ?#div1{float:left;}
?? ?#div2{float:right;}
}
</style>
</head>
<body>
<div id="div1">欄目1</div>
<div id="div2">欄目2</div>
<style type="text/css">
div{
?? ?border:2px red solid;
??? width:200px;
??? height:400px;
?? ?#div1{float:left;}
?? ?#div2{float:right;}
}
</style>
</head>
<body>
<div id="div1">欄目1</div>
<div id="div2">欄目2</div>
2017-11-07
舉報
2017-11-07
應該這樣,怎么能嵌套著寫呢
2017-11-07
div{
? ? border:2px red solid;
? ? width:200px;
? ? height:400px;
}
#div1{float:left;}
#div2{float:right;}
這樣才是對的
2017-11-07
id選擇器要拿出來