我正在尝试将加载图像放在页面的右侧,但除了margin-bottom之外,一切正常.
<div id="preload">
<div align="right" style="margin-bottom:40px; margin-right:50px;">
<img src="http://thc-racing.ucoz.com/design/loading.gif" alt="" />
<br>
<a style="color:#00ff24;"><b>Please wait while the page is loading...
<br>If the website doesn't load within one minute please refresh your page!</b>
</a>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
任何人都可以告诉我它是什么或如何使它工作?谢谢
我有一个listview,我尝试使用以下代码添加服务器信息:
foreach(string element in ids)
{
int id = Int32.Parse(element);
ListViewItem item = new ListViewItem(name[id]);
item.SubItems.Add(ip[id]);
Ping pingsv = new Ping();
PingReply pingreply = pingsv.Send(ips[id],500);
if (pingreply.RoundtripTime == 0)
item.SubItems.Add("500+");
else
item.SubItems.Add(pingreply.RoundtripTime.ToString());
}
Run Code Online (Sandbox Code Playgroud)
但问题是该程序逐个ping服务器并且需要花费很多时间才能完成(我有80个ip用于ping并且将来可能会有更多)所以有没有办法ping所有ips in同一时间?
我有一个想要替换的图像,但......
<div class="news-thumb-wrapper">
<img src="/content/oldimage.jpg" class="attachment-post-thumbnail" height="150" width="600">
<div class="gallery-arrows"></div><h8><a href="/">Some text</a></h8></div>
Run Code Online (Sandbox Code Playgroud)
我已经使用此代码尝试替换整个img标记但它似乎不起作用.
$( "img.attachment-post-thumbnail" ).replaceWith( "<img src="/content/newimage.png" class="attachment-post-thumbnail" height="41" width="600">" );
Run Code Online (Sandbox Code Playgroud)
谁能告诉我代码有什么问题?