HTML 背景图像方向向右转



我正在使用一个函数来生成不同的背景图像,但它们似乎向右转动。如何将它们设置为正常方向?我检查了图像,它们都面向正确的方向。

.html

<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9">
<div class="row" style="width:100%; height: 700px;">
<div class="col-lg-5 col-md-5 hidden-sm hidden-xs leftimg">
</div>
<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12 rightimg">
</div>
</div>
</div>

.css

.rightimg{
padding-left:0;
background-image: url("./images/rightside/pic5.jpg");
background-position:center;
background-size: cover;
background-repeat:no-repeat;
height:100%;
}

我拥有的图像无关紧要。根据图像的分辨率,浏览器会出于某种原因自动将我的图像旋转 90 度。

使用背景位置来更改或。

最新更新