Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何从上到下放置溢流阀_Html_Css - Fatal编程技术网

Html 如何从上到下放置溢流阀

Html 如何从上到下放置溢流阀,html,css,Html,Css,如何使溢出的方式,使图像从上到下剪切,而不是从下到上?如何转换通常的效果。可以尝试将图像设置为背景吗 background:url('image.jpg') bottom center; 那么有固定高度吗?这是我唯一能思考的方法试试这个: #id { background: url('image.jpg') bottom center; width:50px; height:50px; } 您必须相应地更改高度和宽度以适合您的图像 希望这有帮助

如何使溢出的方式,使图像从上到下剪切,而不是从下到上?如何转换通常的效果。

可以尝试将图像设置为背景吗

background:url('image.jpg') bottom center;
那么有固定高度吗?这是我唯一能思考的方法

试试这个:

#id {
background: url('image.jpg') bottom center;
width:50px;
height:50px;
}
您必须相应地更改高度和宽度以适合您的图像

希望这有帮助