中国开发网: 论坛: 程序员情感CBD: 贴子 814062
Miracle
你确定没花眼?我改了一下例子,你再试验下?偶的代码IE 8,Google Chrome和Firefox 3.5均无问题
<!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>
<title></title>
</head>
<body>
<style type="text/css">
div.inline { float:left; }
.clearBoth { clear:both; }
</style>
<div class="inline" style="background-color:Red;">第<br />1<br />块</div>
<div class="inline" style="background-color:Green;">第<br />2<br />块</div>
<div class="inline" style="background-color:Blue;">第<br />3<br />块</div>
<br class="clearBoth" /><!-- you may or may not need this -->
</body>
</html>
夫习拳艺者,对已者十之七八,对人者,仅十之二三耳。拳艺之道,深无止境。得其浅者,一人敌,得其深者,何尝不万人敌耶!
我的Google Picasa相册
我的新BLOG

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录