2011-08-11 24 views
-1

编辑:固定的I改成了HTML Divs制作东西失败了吗?

这是我的代码

Account Type: <div id="accounttype" class=inline-block"><strong><?=$_SESSION['accounttype']?></strong></div> 

现在我的网站上也这样表示

account type: 
personal 

但没有DIV它这样表示

account type: personal 

我该如何使用这样的div显示

account type: personal 

回答

0

尝试:

Account Type: <div id="accounttype" style="display:inline-block"><strong><?=$_SESSION['accounttype']?></strong></div> 

或者更准确:

Account Type: <span id="accounttype"><strong><?=$_SESSION['accounttype']?></strong></span> 
+0

我说我固定它大声笑,但病检查你的任何方式,但我会仅需9分钟因为它说我必须仅需9分钟-.- –

0

Account Type:与风格=一个div “浮动:左”

0

试试这个; Account Type: <div id="accounttype" class="inline-block"><strong><?=$_SESSION['accounttype']?></strong></div

只是你应该下课后使用“=