html - 当我使用 firebase 部署时,网站的某些部分可以工作,但其他部分不能
问题描述
出于某种原因,如果您转到下面的页面,即使在我使用 Firebase 多次部署它之后,div 框也无法展开到足以容纳文本。我认为这是firebase的问题,因为当我在本地设备上打开文件时它是正常的。但是当我部署它有问题。
有人可以帮我找到解决方案吗?
这是HTML代码
<body background="img's/body.bg.jpg">
<header>
<nav>
<img src="img's/ae-emblem.png" width="100" height="100" style="margin-top: 30px; margin-left: 20px;">
<img src="img's/imgbreaker.png" height="113" style="position: relative; top: 10px; bottom: 30px;">
<img src="img's/adp_logo_en.png" width="272" height="109" style="margin-left: 20px;">
</nav>
</header>
<main>
<div class="emcons">
<h3 class="title1">Emergency Contact Numbers:</h3>
<div class="enums1">
<p>Police: 999</p>
<p>Ambulance Service: 998</p>
<p>Fire Department / Civil Defence: 997</p>
<p>Electric Utility Service(For Electrical Failures): 991</p>
<p>Water Utility Service(For Water Failures): 922</p>
</div>
</div>
</main>
这是CSS代码:
.txt1{
font-size: x-large;
color: yellow;
margin-left: 8px;
}
.txt2{
font-weight: bold;
font-size: large;
}
.emcons{
width: 610px;
height: 310px;
background: #D1342D;
position: relative;
top: 126px;
left: 476px;
bottom: 20px;
border: solid;
border-width: 4px;
}
.divm{
width: 410px;
height: 310px;
background: #D1342D;
position: relative;
top: 126px;
left: 519px;
border: solid;
border-width: 4px;
}
.title1{
color: yellow;
text-align: center;
}
.b1{
position: relative;
left: 112px;
top: 20px;
right: 5px;
background-color: yellow;
border: none;
font-size: 28px;
color: black;
padding: 10px;
width: 200px;
}
.enums1{
position: relative;
left: 20px;
color: yellow;
font-weight: bold;
font-size: x-large;
}
CSS 不仅适用于该页面
这是网站:https ://aegov-alrt29072021.web.app/emergencycontacts.html
解决方案
推荐阅读
- php - 在 PHP 中过滤 woocommerce 产品问题
- javascript - angular指令如何同时操作多个dom?
- ios - 如何快速将 Int8 转换为 Uint8?
- servicestack - Servicestack AutoQuery 不过滤结果
- ios13 - 在 Xcode 10 中构建应用程序,升级到 Xcode 11 和模拟器 iOS 13 后现在卡在 LaunchScreen
- ios - 如何实现这种弹出式视图动画?
- php - 是什么导致我的 Chrome cookie 出现这种意外行为?
- ios - 结束后向左滚动 CollectionView 应该在右端打开另一个视图控制器和相同的功能
- c++11 - 获取 CATCH_SINGLE_INCLUDE: command not found 错误,当我在 Catch2 中编译 010-TestCase.cpp 文件时
- ruby-on-rails - 我如何通过 ruby on rails 中的备注获取 project_id