我有这样的css:
.done {list-style-image:url('images/tick.gif')}
.notdone {list-style-image:url('images/cross.gif')}
Run Code Online (Sandbox Code Playgroud)
和html这样:
<ul>
<li class="done">Done</li>
<li class="notdone">Not Done</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
适用于IE6和FF.每个li项目都有一个不同的子弹图像.但是我在list-style-image上看到的所有文档都说它应该应用于ul标签.
是否有适当的或基于标准的方式来做我想做的事情,或者是这样吗?
编辑:http://www.w3.org/TR/CSS21/generate.html
看起来它并没有说我不能在li标签上使用list-style-image,但是这些例子没有显示出来.
以下是特定构建的自定义报告选项卡的URL:
http://teamcity/viewLog.html?buildId=1738&buildTypeId=bt16&tab=report_TODO_items
我无法弄清楚的是如何更改该URL以始终指向最新的构建(已完成或成功).
有关如何获取工件数据的帮助:http://confluence.jetbrains.com/display/TCD7/Patterns+For+Accessing+Build+Artifacts
但是http://teamcity/bt16/.lastSuccessful/viewLog.html&tab=report_TODO_items不起作用
我记得曾经读过.NET有一个内置的configSection处理程序,它可以处理一组键/值对而无需编写我自己的自定义类.与之类似appSettings,但我可以将包含标记命名为我自己的名称,并开始列出键/值对.
任何人都知道这是否存在以及它的名称是什么?
例:
<configuration>
<configSections>
<section name="myKeys" type="Some.Built.In.Assembly, Some.Built.In.Assembly" />
</configSections>
<myKeys>
<add key="1" value="1" />
<add key="2" value="2" />
<add key="3" value="3" />
</myKeys>
Run Code Online (Sandbox Code Playgroud) 这是我第一次尝试使用这种语言或应用程序.我刚刚安装了c#,我无法通过此代码进行简单的值更改.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
progressBar1.Value = 22;
MessageBox.Show("completed!");
}
}
}
namespace WindowsFormsApplication1
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true …Run Code Online (Sandbox Code Playgroud) 我在Windows上使用MongoDB 2.6.1.我已将其安装为服务.我能够启动该服务,并且该进程成功侦听27017,并且我能够连接到它,插入数据并运行查询.
问题是我无法连接到Web界面:
http://localhost:28017
当我回收服务时,我发现它无法绑定到28017端口,因为它看起来像是在使用中:
[websvr] ERROR: listen(): bind() failed errno:10048 Only one usage of each socket address (protocol/network address/port) is normally permitted. for socket: 0.0.0.0:28017
但是,当我运行netstat -anbo它时,不报告任何使用28017.
更新:从日志中添加更多输出以显示已启用REST,但该端口已在使用中.
2014-06-05T16:00:31.840-0700 [initandlisten] options: { config: "D:\MongoDb\bin\mongod.cfg", net: { http: { RESTInterfaceEnabled: true, enabled: true } }, service: true, storage: { dbPath: "e:\mongodb\data" }, systemLog: { destination: "file", path: "e:\mongodb\logs\mongo.log" } }
2014-06-05T16:00:31.860-0700 [initandlisten] journal dir=e:\mongodb\data\journal
2014-06-05T16:00:31.861-0700 [initandlisten] recover : no journal files present, no recovery needed
2014-06-05T16:00:31.902-0700 [initandlisten] …Run Code Online (Sandbox Code Playgroud) 我试图使用jQuery .load()从asmx Web服务获取直接html:
$( '#靶')负载( 'MyService.asmx/GetHtml');
在.NET代码中,GetHtml()以字符串形式返回:
[WebMethod(EnableSession = false)]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Xml)]
public string GetHtml()
{
return "<span>Hi</span>";
}
Run Code Online (Sandbox Code Playgroud)
返回:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/"><span>Hi</span></string>
Run Code Online (Sandbox Code Playgroud)
请注意,字符串已编码.使用该编码,$ .load无法正常工作.显示的文本实际上显示了标签.
如何让WebMethod调用才能返回?
<span>Hi</span>
Run Code Online (Sandbox Code Playgroud) c# ×2
html ×2
.net ×1
app-config ×1
asmx ×1
asp.net ×1
css ×1
javascript ×1
jquery ×1
mongodb ×1
progress-bar ×1
standards ×1
teamcity ×1
teamcity-7.1 ×1
vb.net ×1
windows ×1
winforms ×1