简体   繁体   English

CSS 旋转不起作用@media 查询在旋转后不会变回

[英]CSS rotate is not work @media query does not change back after rotating

I have been spending a week to solve the issue on a media query but I still not able to solve this issue.我已经花了一周的时间来解决媒体查询的问题,但我仍然无法解决这个问题。 The image is still not able to rotate when it shift to the 1028 pixel.图像移动到 1028 像素时仍然无法旋转。

I have a image at the on the red background of my web site.我的 web 站点的红色背景上有一张图片。 I want the image to change in response to a screen with no rotate when is reach to 1028px.我希望图像在达到 1028 像素时响应没有旋转的屏幕而改变。 I understand this is the best way to using by @media query as per the source below and rotate with 0. I think I am in right way to do, but the problem is the image is not effect for what I input.我知道这是@media 查询根据下面的源使用并以 0 旋转的最佳方式。我认为我的做法是正确的,但问题是图像对我输入的内容没有影响。 I am sure that @media query suppose to applies and the image suppose could rotate.我确信@media 查询假设适用并且图像假设可以旋转。 When minimize the screen to be 1028 px, the image just dropped over from the top container to the second and third container.当最小化屏幕为 1028 像素时,图像刚刚从顶部容器下降到第二个和第三个容器。 Which I think this is super ridiculous!我认为这非常荒谬!

I hope you guys could give me some support, and I have taken a screen capture to show this working:我希望你们能给我一些支持,我已经截屏来展示这个工作:

图像未显示零旋转

看这个

 /* title-image */.title-image{ width:60%; -ms-transform: rotate(25deg); /* IE 9 */ -moz-transform:rotate(25deg); -webkit-transform:rotate (25deg); transform: rotate(25deg); position: absolute; right: 30%; } @media (max-width: 1028px){.title-image:{ position: static; transform: rotate(0); } }

.tite-image {
    position: static;
     transform: rotate(0);
       }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM