我使用此代码将我使用的实际浏览器添加到我的段落中,其中 id=browser 进一步向下
$(function ()
{
    $("#browser").text('sBrowser');
});
问题是我的段落id=browser位置太低了一行。
再往下我有这个标记
<div id="info">
    Torsdag : <time>2013-09-05 16:00:00</time>
    <p id="browser"></p>
</div>
我希望标记段落id=browser位于这一行的正下方
Torsdag : <time>2013-09-05 16:00:00</time>
中间没有任何空行
当我在 IE 9 中运行这个标记时,我得到了这个结果,你可以看到我上面有一个空sBrowser
托斯达 : 2013-09-05 16:00:00
浏览器
我希望它看起来像这样
Torsdag : 2013-09-05 16:00:00 sBrowser
那么我必须改变什么才能获得我想要的外观。
这是完整的标记和 css。
<!DOCTYPE html>
<html>
   <head>
      <meta charset = "utf-8">
      <title>Kontaktuppgifter</title>
      <script src="js/jquery.js"></script>
      <script src="js/flygbolag.js"></script>
      <script type="text/javascript">
         $(function ()  //wait until the DOM is complete
         {
            $("#browser").text('sBrowser');
         });
      </script>
      <style type = "text/css">
         body
         {
            font-size:small;
            width:72em;
            background : #87a5be url(img/bg.jpg) no-repeat right bottom fixed;
            background-repeat:no-repeat;
            margin:0;
            padding:0;
            margin:0.2em auto;
          }
          header #info
          {
             font-size:120%;
             float:right; 
             font-weight:bold;
          }
      </style>   
  </head>
  <body id="kontakt">
     <header>
        <div>
           <div id="info">
              Torsdag : <time>2013-09-05 16:00:00</time> <br />
              <p id="browser"></p>
           </div>
        </div>
     </header>
 </body>
</html>