这样在XSL里怎样写?

hansonboy 2006-04-03 03:17:20
<TABLE border="0" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF">
<xsl:attribute name="id"><xsl:value-of select="@guid"/></xsl:attribute>
<xsl:attribute name="style">background:<xsl:value-of select="@bgcolor"/></xsl:attribute>//这里想设置表格的背影色,这样写不行的, 应该怎样写呢?
...全文
137 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
rootcn 2006-04-07
  • 打赏
  • 举报
回复
<xsl:attribute name="bgcolor"><xsl:value-of select="@bgcolor"/></xsl:attribute>//

or

<xsl:attribute name="style">background-color:<xsl:value-of select="@bgcolor"/></xsl:attribute>//
rootcn 2006-04-07
  • 打赏
  • 举报
回复
<xsl:attribute name="style">bgcolor:<xsl:value-of select="@bgcolor"/></xsl:attribute>//

hansonboy 2006-04-07
  • 打赏
  • 举报
回复
怎样呢?
clare2003 2006-04-05
  • 打赏
  • 举报
回复
试试backgroundColor
hansonboy 2006-04-05
  • 打赏
  • 举报
回复
谁来帮忙解答一下吧
hansonboy 2006-04-04
  • 打赏
  • 举报
回复
没人用过吗?
hansonboy 2006-04-04
  • 打赏
  • 举报
回复
up

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧