java

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

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

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

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

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

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

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

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

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

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

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

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

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

Copyright © alex_zheng