Chinaunix首页 | 论坛 | 博客
  • 博客访问: 190946
  • 博文数量: 99
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1045
  • 用 户 组: 普通用户
  • 注册时间: 2014-07-15 14:24
文章分类
文章存档

2015年(9)

2014年(90)

我的朋友

分类: Html/Css

2014-09-02 17:45:26

yexj00.style.pixelLeft=50
yexj00.style.left=50
pxyexj00.style.posLeft=50
he.style.pixelLeft=39
he.style.left=10.2mm
he.style.posLeft=10.199999809265136
d.style.pixelLeft=0
d.style.left=
d.style.posLeft=0
 
left 是字符串,是取html中left的值,如果没有就是空串。
pixelLeft 是数值,是将left的值(如果是空串则赋为0)转化为像素值。
posLeft 就是将left的值转化为数值类型,而且是浮点型。
 
下面代码直接复制到文件浏览测试:
yexj00
 
he


d




阅读(455) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~