style="width:expression(screen.width-0)"中的expression是什么意思,有什么用?
style="width:expression(screen.width-0)"中的expression是什么意思,有什么用? 问题点数:0、回复次数:1Top
1 楼ZeusLion(亮)回复于 2003-04-02 12:20:07 得分 0
expression:计算呀,没看到screen.width-0是一个运算式吗?
expression()里面可以放一段脚本的!
可非常有用!
<div style="width:100%;background-color:#ff0000">
<div style="width:expression(parentElement.clientWidth-10);background-color:#000000">
asdfasdfasdfads
</div>
</div>
看到了吗?子层比父层的宽度少10,如果用纯CSS可没法实现。Top
相关问题
- how to customize window's border(width & style)?????
- 怎么操作<select name="select" size="20" style="width:250" multiple>?
- 关于<div style="width:x;heihgt:x"> 的有关说明
- 请教。。。<span id=liveclock style=position:absolute;left:151px;top:218px;; width: 50px; height: 15px>如何定位。
- 急问 <textarea rows="4" name="aa" style="width:60%" >是否有错!! 在线等
- (请教)关于style中的expression问题
- <object id=sp1 classid=CLSID:0002E510-0000-0000-C000-000000000046 style="width:49%;height:350"></object>是OWC10创建的组件,为什
- 这个多选列表框用这个style后,四条边还是和原来一样,select是不是不能变边框 的?<style>.getrect{border-top-width:0px; border-left-
- how to make the width of a statusbar = form width and automatic resize?
- TIcon的width和Height




