re: Velocity改造心得 行者吴江 2007-10-19 17:25
public class VelocityTest {
public static void main(String[] args) throws Exception {
VelocityEngine ve=new VelocityEngine();
ve.setProperty(Velocity.RESOURCE_LOADER, "class");
ve.setProperty("class.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
ve.init();
Template t=ve.getTemplate("templates/test/test.vm");
StringWriter writer = new StringWriter();
VelocityContext context = new VelocityContext();
t.merge(context, writer);
System.out.println(writer.toString());
}
}
re: 跳动的firefox 行者吴江 2007-09-18 14:06
我想是因为Firefox和IE对CSS中的float的不同的解释方法造成的吧