怎么让DIV1 和DIV2 居上显示

[复制链接]
查看11 | 回复1 | 2011-6-28 07:17:57 | 显示全部楼层 |阅读模式
style
body
{
        text-align:center;
}
#d1
{
border:solid1px#00ff00;
width:20px;
height:20px;
display:inline
}
#d2
{
border:solid1px#0000ff;
width:20px;
height:20px;
display:inline
}
/style
divid=\"d1\"
                div1
/div
divid=\"d2\"
                div2br/div2br/div2br/div2br/div2br/div2br/
/div
回复

使用道具 举报

千问 | 2011-6-28 07:17:57 | 显示全部楼层
#d1
{
border:solid1px#00ff00;
width:20px;
height:20px;
display:inline;vertical-align:top/*#d1这里加上这一行,vertical-align:top*/
}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行