图片未转到网站的最右侧

我正在为图像使用浮动,试图将其移到屏幕的最右侧,但是图像和屏幕的最右侧之间仍然有很大的差距。有人知道为什么吗?

.Sideways {
  float: right;
  margin: 10px 0 0 0;
  max-width: 25%;
}
<img src="Myself.jpg" alt="A picture of myself" class="Sideways">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem inventore autem expedita quas, perspiciatis eum temporibus quae? Rem amet numquam itaque dolor porro nostrum repellat? Quaerat corrupti quod, illo laboriosam aliquam dicta cumque
  illum, libero sapiente molestias ut, assumenda nemo sint placeat! Iste molestiae mollitia nihil magni asperiores libero vitae.</p>
评论
uaut
uaut

This sounds like it could be the default margin on your page's body... in your CSS try adding the following:

body {
  margin: 0;
}
点赞
评论