0
我有一个场景。我想模糊随着循环的进展,我的形象。我怎样才能做到这一点?这是我的代码。我如何添加一个过滤器图像(模糊)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Pagw</title>
</head>
<body>
<?php for($i=1; $i<=5; $i++){
/*
* if $i=1, image will be clear
* if $i=2, image will be less clear
* if $i=3, image will be even clear
* if $i=4, image will be very partially clear
* if $i=5, image will be totally blurred
*/
?>
<img src="flower.jpg" />
<?php } ?>
</body>
</html>
[看看''CSS'过滤blur'(https://css-tricks.com/almanac/properties/f/filter/) – Ben
好了家伙让我看看他们。谢谢。 –