java

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

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

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

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

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

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

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

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

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

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

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

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

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

Copyright © alex_zheng