Làm cách nào để lật hình ảnh trong css?
Ngày đăng:
21/12/2022
Trả lời:
0
Lượt xem:
129
Rotating an image on a web page is possible using a CSS rotate class, which is added to any Xoay hình ảnh bằng CSSMã CSS cần bao gồm mã chuyển đổi cho từng trình duyệt Internet chính để hình ảnh được xoay trong tất cả các trình duyệt Dưới đây là một ví dụ về mã CSS để xoay hình ảnh 180 độ .rotateimg180 { -webkit-transform:rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } The CSS code above should be added to a .css stylesheet file linked in your HTML. For example, if your CSS file is named site.css and in the same directory as your HTML file, you can include the following HTML in the element:Ngoài ra, bạn có thể bao gồm mã CSS nội tuyến, trong thẻ kiểu xuất hiện trước thẻ hình ảnh hoặc trong thuộc tính kiểu của thẻ hình ảnh Once the CSS code is applied to your .css file, stylesheet, or |