天天看点

如何让div横向排列

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<style type="text/css">

<!--

div {

float:left;

width:200px;

height:200px;

border:1px solid red

}

-->

</style>

<div>web????甯歌???棰?澶у??lt;/div>

<div>web????甯歌???棰?澶у??lt;/div>

<div>web????甯歌???棰?澶у??lt;/div>

妯???????DIV??浠ヤ娇?ㄦ诞?ㄧ???瑰?姣?濡?float:left,????璁剧疆瀵硅薄涓哄????锛?杩???浠ョ?瀵瑰??浣?瀵硅薄绛?绛?.

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?