document.getElementById('navition').style.cssText = "您的CSS代码';table.insertRow()在IE下没问题 但在firefox下就得改为table.insertRow(-1)同样其相应的insertCell()也要改为insertCell(-1)JScript 使用下面的规则来把非 Boolean 值转换为 Boolean 值: 所... Read More
posted @ 2009-12-14 11:02 liangwei389 Views(228) Comments(0) Diggs(0) Edit
这些是java的基础知识.首先this代表本类的一个引用,this.*表示调用本类的某个方法,这个时候通常可以省略this;但在内部类中不能省略,否则编译器会认为是内部类的引用,所以要在this前加上类名*.this表示本类的引用,通常前面的*是用本类的名字表示,当然也可以省略,但是如果是在内部类中... Read More
posted @ 2014-08-03 19:39 liangwei389 Views(543) Comments(0) Diggs(0) Edit
一. 二进制转换成图片MemoryStream ms = new MemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image二.C#中byte[]与string的转换代码1、System.Text.UnicodeEncoding converter= new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); string input.. Read More
posted @ 2013-05-08 16:20 liangwei389 Views(428) Comments(0) Diggs(0) Edit
昨天下午也在报这个错误昨晚搞几小时,上午调两个来小时,结果才发现是路径的问题我日!发生了 System.Windows.Markup.XamlParseException Message=未能分配给属性“System.Windows.ResourceDictionary.Source”。 [Line: 24 Position: 36] LineNumber=24 LinePosition=36 StackTrace: 位于 System.Windows.Application.LoadComponent(Object component, Uri resourceLocat... Read More
posted @ 2011-12-14 14:37 liangwei389 Views(3881) Comments(5) Diggs(0) Edit
RadialGradientBrush使用的是与LinearGradientBrush一样的比例坐标系统,如下图所示RadialGradientBrush主要有三个属性:Center:默认为(0.5,0.5)圆的中央,渐变的开始点RadiusY:Y轴半径的比例RadiusX:X轴半径的比例GradientOrigin:单词直译为渐变原点,它主要负责渐变的偏移,一般情况下,我都是保持Center不变,然后改变此值截图:XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <Rectan Read More
posted @ 2011-12-11 12:11 liangwei389 Views(1100) Comments(0) Diggs(0) Edit
无废话,直接上代码XMAL代码:<Grid Width="300" Height="460"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="60"/> <RowDefinition Height="100"/> </Grid.RowDefinitions> <Grid.Triggers> <EventTri Read More
posted @ 2011-12-10 22:03 liangwei389 Views(399) Comments(0) Diggs(0) Edit
Sliverlight情景下使用方法一、 使用VisualStateManager 技术,调用 GoToState()XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="myButtonStates"> <VisualState x:Name="Normal"></VisualS Read More
posted @ 2011-12-10 20:14 liangwei389 Views(449) Comments(0) Diggs(0) Edit
为实现ArcGIS地图上标绘标注信息,如下图红色框选中部份这个边框效果需要引用DLL:Microsoft.Expression.Drawing与XAML的命名空间:http://schemas.microsoft.com/expression/2010/drawing加载的XAML标签为:<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml& Read More
posted @ 2011-11-30 16:05 liangwei389 Views(3073) Comments(2) Diggs(0) Edit
jQuery.browser浏览器内核标识。依据 navigator.userAgent 判断。可用值:safarioperamsiemozilla此属性在 DOM 树加载完成前即有效,可用于为特定浏览器设置 ready 事件。浏览器对象检测技术与此属性共同使用可提供可靠的浏览器检测支持。苹果的Safari、谷歌的Chrome浏览器都是基于WebKit 这个框架来开发的因此对于这Chrome浏览器,可以使用以下方法判断if ($.browser.Webkit) { alert("this is safari or Chrome!");} Read More
posted @ 2011-09-26 15:35 liangwei389 Views(2860) Comments(1) Diggs(0) Edit
功能描述:使用jQuery解析已经定义好内容的xml文件1.xml文件:menu.xml<?xml version="1.0" encoding="gb2312"?><menus> <menu> <id>1</id> <name>system</name> <parentId>0</parentId> <target>mainFrame</target> <url></url> </menu&g Read More
posted @ 2011-03-10 16:42 liangwei389 Views(380) Comments(0) Diggs(0) Edit
首先建立一个Ajax接受页面,暂时使用GET方式获取数据,后台代码如下:namespace WebApp{ public partial class Index1Ajax : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write(GetRequestParamByGET("UserName")); Response.End(); } /// <summary> /// 获取GET方式传入的参数 /// </summary> Read More
posted @ 2011-03-06 15:48 liangwei389 Views(497) Comments(0) Diggs(0) Edit