如何在不影响HTML和CSS背景图像的情况下调整图像

时间:2019-03-12 09:01:19

标签: html css

我正在尝试在网页中心调整徽标,但是每当在CSS文件中调整徽标时,背景都会受到更改的影响,因此顶部会有空白。

.bgimage {
    	width: 1903px;
    	height: 1000px;
    	background-image: url(https://drive.google.com/uc?id=1ZtitWTmH3qglyS7uv4X32GDQv35fmhwG);
    	background-attachment: fixed;
    	background-size: cover;
    	margin-top: 60px;
    	display: block;
    }
    
    
    
    .bgimage .ETLOGO {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	margin-top: 80px;
    	width: 40%;
    	height: 50%
    }
<div class="bgimage">
       <img src="https://drive.google.com/uc?id=1vXkFqCQzC7sagYCBOuAwDQMf-uhJTmAo" class="ETLOGO">
    </div>

Here is a photo of my website.

1 个答案:

答案 0 :(得分:0)

我认为您想要的是在徽标顶部填充空白,而不是空白。试试这个:

SELECT *
FROM [dbo].[Employee]  
   INNER JOIN [dbo].[Site]
     ON [dbo].[Site].SiteID = [dbo].[Employee].SiteID
   INNER JOIN [dbo].[HolidayRequestForm]
              LEFT JOIN [dbo].[SickLeaveRequestForm]
                ON [dbo].[SickLeaveRequestForm].EmployeeID = [dbo]. 
[HolidayRequestForm].EmployeeID
     GROUP BY [dbo].[Site].SiteName
SiteName  |Holiday Hours   |Sick Hours
 ---------+----------------+---------------+
Site A    | 8              |8              |
Site B    | 16             |8              |
Site C    | 16             |8              |