用a+css做出table的效果 不指定

Else , 2009/11/19 16:33 , 代码片段,演示也有 , Comments(0) , Reads(711) , Via Original
[hcode]<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">

#demo a{display:inline; display:inline-block!important; width:150px; text-align:center; margin:5px; border:solid 1px #000;}
</style>
</head>


<body>

<div id="demo"> <a href="#">sdafasdfa</a> <a href="#">sdasdfasdf</a> <a href="#">asdfasdf asdf asd fas</a> <a href="#">dfa sdf asdf as</a> <a href="#">dfa sdf</a></div>
</body>
</html>
[/hcode]
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]