<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[dahenga的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/dahenga</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; dahenga]]></copyright><item><title><![CDATA[jQuery 给动态元素绑定事件]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51701126</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51701126</guid><author>dahenga</author><pubDate>Fri, 17 Jun 2016 16:43:45 +0800</pubDate><description><![CDATA[jQuery 使用on绑定动态生成的元素时，不能直接用该对象操作，而是选择其非动态生成的父节点然后再找到本身才能达到效果。]]></description><category></category></item><item><title><![CDATA[图片分组加载]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51301852</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51301852</guid><author>dahenga</author><pubDate>Tue, 03 May 2016 08:50:24 +0800</pubDate><description><![CDATA[为考虑到用户的流量和网速问题，有时需要把图片分组加载，用户没有选中的不加载。
首先在jsp中设置，把图片地址赋值给len-src属性。
比如：
jsp

    
    
        
            
            
                
                    
                
          ]]></description><category></category></item><item><title><![CDATA[在固定大小div插入N个图片使其一行排列]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51276531</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51276531</guid><author>dahenga</author><pubDate>Thu, 28 Apr 2016 17:56:31 +0800</pubDate><description><![CDATA[http://blog.163.com/1.jpg" width="250px"
 height="250px" />
                http://blog.163.com/2.jpg" width="250px"
 height="250px" />
                http://blog.163.com/3.jpg" width="250px"
 h]]></description><category></category></item><item><title><![CDATA[JSTL分割字符串并获取没一个子字符串]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51276415</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51276415</guid><author>dahenga</author><pubDate>Thu, 28 Apr 2016 17:42:44 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[JSTL（c标签）与Struts2（s标签）标签的常用功能对比]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51225820</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51225820</guid><author>dahenga</author><pubDate>Sat, 23 Apr 2016 13:01:28 +0800</pubDate><description><![CDATA[1. 条件标签 JSTL



c:if test="${user.password
 == 'hello'}">     
c:choose>         
c:when test="${user.age
 ">             
font color="blue"/>         
c:when>         
c:when test="${user.]]></description><category></category></item><item><title><![CDATA[java字符串大写转小写，小写转大写]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51204933</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51204933</guid><author>dahenga</author><pubDate>Wed, 20 Apr 2016 23:28:16 +0800</pubDate><description><![CDATA[String test="ABC34cccddee";
    System.out.println(test.toUpperCase());//小写转大写

 

 String test="ABC34cccddee";
    System.out.println(test.toLowerCase());小写转大写]]></description><category></category></item><item><title><![CDATA[在<table>或<div>中如何让传入的文本自动换行]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51179908</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51179908</guid><author>dahenga</author><pubDate>Mon, 18 Apr 2016 15:24:07 +0800</pubDate><description><![CDATA[在或中如何让传入的文本自动换行



你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你你



这样的话。div中内容。会到100px自动换行的。但是



cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc]]></description><category></category></item><item><title><![CDATA[浮动问题:如何相对某个div进行绝对定位.]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/51178081</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/51178081</guid><author>dahenga</author><pubDate>Mon, 18 Apr 2016 11:08:34 +0800</pubDate><description><![CDATA[div提供了一个支持ie及大多数浏览器的浮动方式，就是相对于其上一级的div容器进行浮动，这种做法的好处是定位更加准确，不容易出现差错。

示例：

div id="A">

    div id="B">

    div>

div>


css样式：

#A{position:relative}
-- lang: css -->
#B{position:absolute;top:]]></description><category></category></item><item><title><![CDATA[FreeMarker生成静态页面]]></title><link>https://blog.youkuaiyun.com/dahenga/article/details/50828594</link><guid>https://blog.youkuaiyun.com/dahenga/article/details/50828594</guid><author>dahenga</author><pubDate>Tue, 08 Mar 2016 16:51:38 +0800</pubDate><description><![CDATA[1、 FreeMarker生成静态页原理

FreeMarker适合于作为Web应用的表现层，把页面中所需要的样式放入FreeMarker文件中，然后将页面所需要的数据动态绑定，并放入Map中，通过调用FreeMarker模板文件解析类process()方法完成静态页面的生成。
2、创建ftl文件



"-//W3C//DTD HTML 4.01 Transitional//EN"]]></description><category></category></item></channel></rss>