我想使用CSS3属性transform:scale.
div
{
transform: scale(0.5,0.5);
}
Run Code Online (Sandbox Code Playgroud)
有没有办法在Internet Explorer 8和更低版本中模仿这个?可能是一些filter或Javascript解决方案?
我没有任何结果在网上搜索过.
非常感谢,文森特
我正在使用HTML5 Geolocation API来查找我网站用户的经度和纬度.这有效,但现在我想在屏幕上显示"你目前在......".所以我需要将从Geolocation API获得的这些坐标转换为地名.
我尝试了一下谷歌地图API,但我没有让它运作.
有谁知道怎么做?
我有一个Albums用类中的对象调用的集合Album.该类有一个属性Songs,它是一个Song对象的集合.每个Song都有一个唯一的Id.
public IQueryable<Album> Albums
public class Album
{
...
public virtual ICollection<Song> Songs { get; set; }
...
}
public class Song
{
public int Id { get; set; }
...
}
Run Code Online (Sandbox Code Playgroud)
是否有可能使用Linq在专辑集中找到一首歌?我不知道怎么样,我是玲的新手.我试了一下:
Albums.FirstOrDefault(a => a.Songs.Id == id);
Run Code Online (Sandbox Code Playgroud)
非常感谢,
文森特
我在Visual Studio中创建了一个ASP.net应用程序.当它准备好了,我做了"发布网站".我将创建的文件夹放在我的网站上.
当我转到我的网站上的应用程序时,我收到以下错误:
配置错误
描述:处理为此请求提供服务所需的配置文件时发生错误.请查看下面的具体错误详细信息并相应地修改配置文件.
分析器错误消息:在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的.
来源错误:
Line 47: ASP.NET to identify an incoming user.
Line 48: -->
Line 49: <authentication mode="Forms" />
Line 50:
Line 51: <customErrors mode="Off">
Run Code Online (Sandbox Code Playgroud)
源文件:
\CLST_SMB1IIS\WebfarmData $\WebData\winckelmans.net\wwwroot\bookstore\web.config行:49
我该如何解决这个问题?
谢谢,
文森特
我尝试更新FormView时出现此错误
无法在ObjectDataSource'odsForm'中的DataObjectTypeName属性指定的类型上找到名为"MainContact.FirstName"的属性.
我认为这是因为我在EditTemplate中使用了像这样的文本框
<asp:TextBox Text='<%# Bind("MainContact.FirstName") %>' ID="txtFirstName" runat="server" />
Run Code Online (Sandbox Code Playgroud)
它在文本框中显示正确的文本,但显然它在更新时不起作用.
这是FormView的数据源
<asp:ObjectDataSource ID="odsForm" runat="server" DataObjectTypeName="Helpers.BusinessObjects.EntryItem"
SelectMethod="GetEntryByEmail" TypeName="Helpers.DataAccessers.EntryHelper"
UpdateMethod="UpdateEntry">
<SelectParameters>
<asp:SessionParameter SessionField="email" Name="email" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
Run Code Online (Sandbox Code Playgroud)
这是EntryItem类
public class EntryItem
{
public int Id { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public Person MainContact { get; set; }
...
}
Run Code Online (Sandbox Code Playgroud)
和人类
public class Person
{
public int Id { get; set; }
public string FirstName { get; set; …Run Code Online (Sandbox Code Playgroud) 我在尝试删除图像文件时遇到问题.我总是得到一个错误:IOExeption未处理.访问被拒绝,因为该文件正被另一个进程使用.
我不知道可能是什么过程以及如何解决它.
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
Album album = GetAlbum(comboBox1.SelectedIndex);
Photo photo = GetPhoto(comboBox1.SelectedIndex, comboBox3.SelectedIndex);
txtPhotoPath.Text = Directory.GetCurrentDirectory() + "\\" + photo.SPath;
lblExtention.Text = photo.SExtention;
txtPhotoTitle.Text = photo.STitle;
pctrbFoto.Image = Image.FromFile(foto.SPath).GetThumbnailImage(GetWitdth(photo.SPath, GetHeight(photo.SPath, 150)), GetfHeight(photo.SPath, 150), null, new IntPtr());
}
private void btnChangePhoto_Click(object sender, EventArgs e)
{
Album album = GetAlbum(comboBox1.SelectedIndex);
Photo photo = GetPhoto(comboBox1.SelectedIndex, comboBox3.SelectedIndex);
File.Delete("Albums\\Images\\" + photo.STitle + foto.SExtention);
photo.SExtention = lblExtention.Text;
photo.STitle = txtPhotoTitel.Text;
Photo.SPath = txtPath.Text;
File.Copy(photo.SPath, "Albums\\Images\\" + photo.STitle + photo.SExtention);
}
谢谢,Vinzcent …
我在Internet Explorer 8及更低版本中的旋转有问题.我能够旋转父div,但子(绝对定位)不会与其父级一起旋转.当我没有将孩子定位为绝对时,它会做正确的旋转.
这是我的代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.parent
{
background-color: #f00;
position: absolute;
top: 300px;
left: 300px;
width: 500px;
height: 500px;
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476, sizingMethod='auto expand'); //45deg
}
.child
{
background-color: #0f0;
position: absolute;
top: 150px;
left: 150px;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div class="parent">
This is the parent
<div class="child">
This is the child
</div>
</div>
</body>
</html> …Run Code Online (Sandbox Code Playgroud) 我有一个奇怪的问题.当用户单击输入字段或选择页面内容移动到左侧时.我不知道为什么.这仅在webkit浏览器中发生.
这个页面使用webkit-transform,也许有什么问题?
你可以在这里测试 http://zapmama.be/home/dev#/ontour
我希望你能帮助我.非常感谢!
文森特
我想显示一个每2秒(或类似的东西)改变其内容的图像.不幸的是,我无法使用JavaScript,Flash或Silverlight,因为我想在传出的html电子邮件中使用动画,并且各种电子邮件客户端之间具有最大的兼容性.
所以,我尝试使用.ashx处理程序生成图像.但我无法刷新图像(或重新执行ashx处理程序).我尝试了一个循环,但是没有用.
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "image/png";
string strDisplay = DateTime.Now.ToString();
Bitmap bmpOut = new Bitmap(400, 50);
Graphics g = Graphics.FromImage(bmpOut);
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.FillRectangle(Brushes.Black, 0, 0, 400, 50);
g.DrawString(strDisplay, new Font("Verdana", 18), new SolidBrush(Color.White), 0, 0);
MemoryStream ms = new MemoryStream();
bmpOut.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
byte[] bmpBytes = ms.GetBuffer();
bmpOut.Dispose();
ms.Close();
context.Response.BinaryWrite(bmpBytes);
context.Response.End();
}
Run Code Online (Sandbox Code Playgroud)
我该怎么做,还是有其他解决方案?
编辑:图像内容未预定义.它包含例如推文列表.
编辑:目前我们正在尝试MJPEG.有谁知道更多关于这个和电子邮件客户端?
非常感谢,
文森特
我想在C#-application中从access-database加载一些数据.但是当它尝试与数据库建立连接时,我收到此错误:
无法识别的数据库格式
我该如何解决这个问题?
这是我的代码:
private void btnBrowseDB_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Kies een databank.";
ofd.Filter = "Microsoft Access Databank (*.accdb)|*.accdb";
ofd.RestoreDirectory = true;
if (ofd.ShowDialog() == DialogResult.OK)
{
txtDBLocation.Text = ofd.FileName;
loadCampagnes(ofd.FileName);
}
}
private void loadCampagnes(string pathDB)
{
string connString = "Provider=Microsoft.Jet.OLEDB.4.0;"
+ "User ID=;"
+ "Password=;"
+ "Data Source =" + pathDB + ";";
try
{
OleDbConnection oleDbConn = new OleDbConnection(connString);
string strSQL = "SELECT id, naam "
+ "FROM Marketingcampagne …Run Code Online (Sandbox Code Playgroud)