<span style="list-style-type: none;color:red;text-align:center;"><s:fielderror cssstyle="color:red" id="error" fieldname="errormessage"/></span>
<span style="color:red;"><s:fielderror fieldname="accountpwd"/></span>
不可能吧。错误信息怎么可能不是红色。你确认一下是否有父元素的定义复盖掉了.或者把span删除掉
不可能吧。错误信息怎么可能不是红色。你确认一下是否有父元素的定义复盖掉了.或者把span删除掉
这个要看你的s:fielderror生成的dom结构
你看一看这个demo
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Swapping Songs</title><style>a{color:#fff}#parentElement *{color:#ddd}.childE{color:green}</style></head><body> <div id="parentElement"> <div class="childE"> this is div a character </div> <span class="childE" style="color:red"> <a href="javascript:;">this is span a character</a> </span> </div></body></html>
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号