将XSL元素对齐到页面右侧

时间:2012-08-29 15:10:10

标签: html css

在页面生成和XSLT之后,XSL是否有任何方法将以下元素与页面右侧对齐?

<RadioButton>               
    <Name>myRadio</Name>
</RadioButton>

其中RadioButton是定义为<input radio...etc>

的模板

1 个答案:

答案 0 :(得分:1)

生成页面后,您需要使用级联样式表或其他内容进行美容对齐。

所以在你的xsl中你可能有模板使其像

<input type="radio" name="blah" class="moo" value="blah" /> 

并且.css中有

.moo{
float:right;
}

或者你可以使用像

这样的内联样式
<input type="radio" name="blah" style="float:left;" value="blah" /> 
相关问题