开发者

Contents inside the DIV are being Overlapped when the window opened as window.open

开发者 https://www.devze.com 2023-03-05 04:33 出处:网络
Please see the Image herehttp://www.tiikoni.com/tis/view/?id=56eb165 When the Page is opened as Window.open , the contents are being overlapped as shwon in the Picture .

Please see the Image here http://www.tiikoni.com/tis/view/?id=56eb165

When the Page is opened as Window.open , the contents are being overlapped as shwon in the Picture .

As you can see from the Image that开发者_如何转开发 the Hyper Link Print is being overlapped .

This is the code i am using

     <div style="background-color:#99CCFF;white-space: nowrap;">
<hr><p><div style="float: right;"><a href="url">Print</a></div><span STYLE="font-size:24; font-weight:bold; color: black">Site:</span> Downtown Denver DataCenter - CCODEN44 | <span STYLE="font-size:24; font-weight:bold; color: black">Device:</span> CCODEN44-ACME-RTR-1 | <span STYLE="font-size:24; font-weight:bold; color: black">Interface:</span> Wilmington DataCenter, DC  <hr></p>
</div>


I personally would have wrote this a little better but here is what I adjusted.

-Wrapped your text inside a p tag -added a hr tag with a clear:both to clear the floated anchor tag

<div style="background-color:#99CCFF;white-space: nowrap;overflow:hidden">

  <div style="float: right"><a href="url">Print</a></div>

  <hr/ style="clear:both">

  <p> <span STYLE="font-size:24; font-weight:bold; color: black">Site:</span> Downtown Denver DataCenter - CCODEN44 | <span STYLE="font-size:24; font-weight:bold; color: black">Device:</span> CCODEN44-ACME-RTR-1 | <span STYLE="font-size:24; font-weight:bold; color: black">Interface:</span> Wilmington DataCenter, DC</p>

  <hr/>
</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消