| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 890 人关注过本帖
标题:CSS中的长度单位!!!
只看楼主 加入收藏
IP
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2004-11-17
收藏
 问题点数:0 回复次数:3 
CSS中的长度单位!!!
长度单位            版本                兼容性                    简介
--------------------------------------------------------------------------------------------------------------
相对长度单位   
--------------------------------------------------------------------------------------------------------------
em                  CSS1                IE4+ , NS4+            相对于当前对象内文本的字体尺寸
ex                  CSS1                IE4+ , NS4+            相对于字符 “ x ” 的高度。通常为字体高度的一半
px                  CSS1                IE3+ , NS4+            像素(Pixel)
--------------------------------------------------------------------------------------------------------------
绝对长度单位
--------------------------------------------------------------------------------------------------------------
pt                  CSS1                IE3+ , NS4+            点数(Point)
pc                  CSS1                IE3+ , NS4+            派卡(Pica)。相当于我国新四号铅字的尺寸
in                  CSS1                IE3+ , NS4+            英寸(Inch)
cm                  CSS1                IE3+ , NS4+            厘米(Centimeter)
mm                  CSS1                IE3+ , NS4+            毫米(Millimeter)
--------------------------------------------------------------------------------------------------------------
 
单位换算:1in = 2.54cm = 25.4 mm = 72pt = 6pc
搜索更多相关主题的帖子: CSS 单位 长度 
2004-12-10 19:03
情圣
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2004-10-6
收藏
得分:0 

有用的东东啊

呵呵...........


在静中寻找一切最美的感觉... /images/upphoto/306.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs.glite./images/upphoto/306.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-12-10 23:32
情圣
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2004-10-6
收藏
得分:0 

但是对于px到底是多大呢

我们不好把握啊

我感觉还是用cm 比较的好

呵呵..........


在静中寻找一切最美的感觉... /images/upphoto/306.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs.glite./images/upphoto/306.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-12-11 00:36
IP
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2004-11-17
收藏
得分:0 

其实个样的长度单位我个人认为,还是由个人的 爱好来决定的!呵呵!!!

特别想字体的大小我认为PT还是比较好的!!!


一起努力!
2004-12-11 16:46
快速回复:CSS中的长度单位!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023824 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved