我想使图像完全位于屏幕的右上方。
body{ font-family: 'Roboto', sans-serif; font-weight: 300; background: #822B2B; color: #ffffff; overflow: hidden; } #showcase{ display: flex; justify-content: center; align-items: center; text-align: center; /* margin-left: 116px; */ /* width: 180vh; */ height: 100vh; background: url('https://images.pexels.com/photos/1402787/pexels-photo-1402787.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260') no-repeat center center / cover; }
请随时提出任何需要澄清的问题。代码位于:https://codepen.io/zaidik/pen/WNQYbXz
我想使图像完全位于屏幕的右上方。 body {font-family:'Roboto',sans-serif;字体粗细:300;背景:#822B2B;颜色:#ffffff;溢出:隐藏; } #showcase {...
将margin:0;
添加到您的身体CSS规则