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(48) Comments(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(57) Comments(0) Edit
RadialGradientBrush使用的是与LinearGradientBrush一样的比例坐标系统,如下图所示RadialGradientBrush主要有三个属性:Center:默认为(0.5,0.5)圆的中央,渐变的开始点RadiusY:Y轴半径的比例RadiusX:X轴半径的比例GradientOrigin:单词直译为渐变原点,它主要负责渐变的偏移,一般情况下,我都是保持Center不变,然后改变此值截图:XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <RectanRead More
posted @ 2011-12-11 12:11 liangwei389 Views(11) Comments(0) Edit
无废话,直接上代码XMAL代码:<Grid Width="300" Height="460"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="60"/> <RowDefinition Height="100"/> </Grid.RowDefinitions> <Grid.Triggers> <EventTriRead More
posted @ 2011-12-10 22:03 liangwei389 Views(19) Comments(0) Edit
Sliverlight情景下使用方法一、 使用VisualStateManager 技术,调用 GoToState()XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="myButtonStates"> <VisualState x:Name="Normal"></VisualSRead More
posted @ 2011-12-10 20:14 liangwei389 Views(25) Comments(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(56) Comments(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(12) Comments(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&gRead More
posted @ 2011-03-10 16:42 liangwei389 Views(71) Comments(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(72) Comments(0) Edit
background-position 用法详细介绍语法:background-position : length || lengthbackground-position : position || position取值:length : 百分数 | 由浮点数字和单位标识符组成的长度值。请参阅 长度单位position : top | center | bottom | left | center | right说明:设置或检索对象的背景图像位置。必须先指定 background-image 属性。该属性定位不受对象的补丁属性( padding )设置影响。默认值为: 0% 0% 。此时Read More
posted @ 2011-01-20 15:45 liangwei389 Views(109) Comments(0) Edit
属性表示禁止单元格中的文字自动换行。但使用时要注意的是,td元素中nowrap属性的行为与td元素的width属性有关。如果未设置td宽度,则nowrap属性起作用的,如果设置了td宽度,则nowrap属性不起作用。Read More
posted @ 2011-01-11 17:59 liangwei389 Views(152) Comments(0) Edit