2

我的要求是:---

  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 tag(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 标签。请帮我

4

1 回答 1

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;
于 2013-06-28T06:21:16.587 回答