以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  请问如何控制xsl中button的位置?给定left/right/top/bottom  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=22852)


--  作者:zon
--  发布时间:10/9/2005 11:50:00 AM

--  请问如何控制xsl中button的位置?给定left/right/top/bottom
请问如何控制xsl中button的位置?给定left/right/top/bottom.如:
xml文件:
<button text="选择修改" left="244" top="214" right="269" bottom="332" Ctrl_ID="8325">
  <types>
   <type>WS_CHILD</type>
   <type>WS_VISIBLE</type>
   <type>BS_MULTILINE</type>
  </types>
 </button>


xsl文件:
<input  type="button" value="{./@text}" id="{./@Ctrl_ID}"/>


--  作者:zon
--  发布时间:10/9/2005 4:09:00 PM

--  
<input style="Z-INDEX: 102; LEFT:{./@left}px; POSITION: absolute; TOP:{./@top}px; height: {./@bottom}'-'{./@top}px; width: {./@right}'-'{./@left}px" type="button" value="{./@text}" top="{./@top}" right="{./@right}" bottom="{./@bottom}" id="{./@Ctrl_ID}" align="absmiddle"/>
试了下,不对!width和height不是想要的值,到底该怎么办呢?
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
34.912ms