我的要求是:---
Selected outlet: Selected table: Selected employee: Logged in as:
Wine Bar 15 EmpName admin (admin)
我正在使用我的html span标签
<div class="my_dynamic_panel">
<span class="outletTitle right_border">Selected outlet:<b>Wine Bar</b></span>
<span class="outletTitle right_border">Selected table:<b>15</b></span>
<span class="outletTitle right_border">Selected employee:<b></b></span>
<span class="outletTitle ">Logged in as:<b>admin</b>
(admin)</span>
</div>
然后我的输出就像
Selected outlet:Wine Bar Selected table:15 Selected employee: Logged in as:admin (admin)
如果我在span内使用break标签(br)
<div class="my_dynamic_panel">
<span class="outletTitle right_border">Selected outlet:<br><b>Wine Bar</b></span>
<span class="outletTitle right_border">Selected table:<br><b>15</b></span>
<span class="outletTitle right_border">Selected employee:<br><b></b></span>
<span class="outletTitle ">Logged in as:<br><b>admin</b>
(admin)</span>
</div>
然后我的输出是
Selected outlet:
Wine Bar Selected table:
15 Selected employee:
Logged in as:
admin (admin)
我不擅长CSS。我想使用带有br的span标签。请帮帮我
答案 0 :(得分:0)
您可以构建您的网址:
myurl="http://localhost/EServices/retrieve.aspx;"
Ajax Data = data : {command : 'get_authentication', username: un , password : pw}
type: "POST",
url:myurl,
dataType: "xml",
async: true,
data: {command : 'get_authentication', username : un , password : pw},
contentType: "text/xml",
crossDomain:true,
processData:false,
而不是
myurl="http://localhost/EServices/retrieve.aspx?command=get_authentication&username="+un+"&password="+pw;