我搜索了很多,以删除不需要的空间,但无法找到.我只找到了可用于删除黑白背景空间的链接.但我的背景图片可以是任何东西.那么,如果我有这些图像,



如何提取我需要的图像部分.例如,

我正面临这个错误:
The remote name could not be resolved: 'russgates85-001-site1.smarterasp.net'
当我请求使用Web客户端读取html内容时,它给了我错误.以下是我的代码.
string strHTML = string.Empty;
WebClient myClient = new WebClient();
UTF8Encoding utf8 = new UTF8Encoding();
byte[] requestHTML;
string pdfFileName = "outputpdf_" + DateTime.Now.Ticks + ".pdf";
string webUrl = Request.Url.Scheme + "://" + Request.Url.Host + (Request.Url.Port != 80 ? ":" + Request.Url.Port : "");
requestHTML = myClient.DownloadData("http://russgates85-001-site1.smarterasp.net/adminsec/images/printinvoice.aspx?iid=2");
// OR
requestHTML = myClient.DownloadData(webUrl + "?iid=3");
Run Code Online (Sandbox Code Playgroud)
当我在我的本地代码/环境中放置相同的URL时,它工作正常.
我最近开始学习JavaScript,但有一些我很困惑的事情:
Element.value 和 之间有什么不同Element.getAttribute("value") ?
实际上我的问题是,当我尝试将input类型的元素的值复制text到另一个时,如果我使用第一个方法(Element.value)它工作正常但是如果我使用第二个方法它复制给元素的第一个值当我改变里面的文字时它永远不会更新textbox,这种行为对我来说似乎很奇怪!你能解释一下这里发生了什么吗?
<html>
<head>
<meta charset="utf-8">
<title>Hello JavaScript</title>
<script src="script2.js"></script>
</head>
<body>
<input id="Text1" type="text" />
<input id="Button1" type="button" value="button" />
<input id="Text2" type="text" />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
JavaScript文件:
var myButton;
window.onload = function () {
myButton = document.getElementById("Button1");
myButton.onclick = function () {
var val = document.getElementById("Text1").getAttribute("value");
//var val = document.getElementById("Text1").value;
document.getElementById("Text2").setAttribute("value", val);
};
};
Run Code Online (Sandbox Code Playgroud) 该演示显示模式是那些您在使用时会看到Windows+ p快捷键:
是否存在允许在这些显示模式之间切换的API调用?
我想以编程方式在显示器和HDMI电视之间切换(并同时做一堆其他事情,因此Windows+ p没有用),但我正在打砖墙.
所以我创建了一个div带有span元素的父元素,持有父元素的标题,我为父css元素定义了一个前面的伪元素(:before),所以当用户将鼠标悬停在元素上时,它有一个很好的过渡,但问题是:在:before覆盖span件这样的标题被隐藏这是不能接受的,当然!
这是jsfiddle上的示例代码:http://jsfiddle.net/msU6p/4/
这是HTML:
<div class="menuItem_Large" id="node_1_menu">
<span>menu item 1</span>
</div>
Run Code Online (Sandbox Code Playgroud)
和风格:
.menuItem_Large
{
position: absolute;
left: 0px;
display: inline-block;
padding-left: 6px;
padding-right: 6px;
height: 20px;
line-height: 16px;
vertical-align: middle;
background-image : url('http://i58.tinypic.com/21eyrk8.png');
background-repeat: repeat;
cursor:pointer;
}
.menuItem_Large:before
{
content:"";
position:absolute;
top:0px;
left:0px;
width:0%;
height:20px;
background-color:rgba(0,200,255,1);
transition:width 0.3s ease-out;
}
.menuItem_Large:hover:before
{
width:100%;
}
.menuItem_Large span
{
color: white;
font-size: 16px;
}
Run Code Online (Sandbox Code Playgroud)
我尝试使用z-index …
我正在尝试在我的表中插入一条记录Test,我正在使用LINQ技术:
问题是time我的表中有一个类型的列,Time(7)但是当我尝试向表中插入数据时,我收到此错误:
Operand type clash: bigint is incompatible with time
这是我test在SQL中的表设计:

我在C#中的表实现:
[Table(Name = "Test")]
class TableTest
{
private int _id;
[Column(IsPrimaryKey = true, Name = "id", Storage = "_id")]
public int id
{
get { return _id; }
set { _id = value; }
}
private TimeSpan _time;
[Column(Name = "time", Storage = "_time")]
public TimeSpan time
{
get { return _time; }
set { _time = value; }
}
} …Run Code Online (Sandbox Code Playgroud)