java

     摘要: 今天有个需求,需要限制图片中的style属性,只能是width,height,float属性,可以通过正则表达式来解决,只匹配这个三个属性中的一个或多个
^(((width|height)\s*:\s*\d+(px|%)[;]?)|\s|(float:(left|right)[;]?))+$
这里没有对重复定义做处理  阅读全文

posted @ 2011-03-30 10:22 alex_zheng 阅读(4385) | 评论 (0)  编辑 |

posted @ 2011-02-22 11:07 alex_zheng 阅读(539) | 评论 (0)  编辑 |

posted @ 2011-01-17 09:31 alex_zheng 阅读(1348) | 评论 (0)  编辑 |

posted @ 2010-12-14 14:23 alex_zheng 阅读(327) | 评论 (0)  编辑 |

posted @ 2010-12-09 16:46 alex_zheng 阅读(864) | 评论 (0)  编辑 |

posted @ 2010-12-06 16:59 alex_zheng 阅读(3257) | 评论 (0)  编辑 |

posted @ 2010-12-05 16:27 alex_zheng 阅读(1145) | 评论 (0)  编辑 |

posted @ 2010-12-04 14:54 alex_zheng 阅读(1262) | 评论 (0)  编辑 |

posted @ 2010-12-03 21:26 alex_zheng 阅读(2074) | 评论 (0)  编辑 |

posted @ 2010-12-01 21:37 alex_zheng 阅读(4363) | 评论 (0)  编辑 |

posted @ 2010-11-27 16:58 alex_zheng 阅读(1248) | 评论 (0)  编辑 |

posts - 10, comments - 9, trackbacks - 0, articles - 15

Copyright © alex_zheng