我需要关于如何处理表格布局问题的想法。我想根据所选择的语言设置不同的列宽度。
发布于 2008-10-15 03:38:08
变量开关,例如:
<%
dim columnWidth
if session("lang") = "eng" then
columnWidth = 50
else
columnWidth = 100
end if
%>
<table>
<tr>
<td width="<%= columnWidth %>px">[content]</td>
</tr>
</table>对于c#,代码为:
<%
private int columnWidth;
if (session("lang") == "eng") {
columnWidth = 50;
} else {
columnWidth = 100;
}
%>发布于 2008-10-15 03:41:31
您可以使用特定于语言的CSS,然后简单地根据语言加载适当的CSS。
在CSS中,您可以向表中添加样式以定义布局。
发布于 2008-10-15 03:28:57
根据当前选择的语言在脚本中使用if-else,并放置适当的"td“标记。
希望这就是你要找的!
https://stackoverflow.com/questions/203620
复制相似问题