- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
实际上我得到了这个元素设置的页面布局。在最后一张 div 卡被接受后有一个很大的白色间隙。这是一个很大的空白,它会向下滚动。我相信这可能是一个 margin 问题,但无法确定在哪里。关于如何在不影响布局的情况下消除这个大差距的任何想法。这是代码
body {
background: rgba(117, 112, 112, 0.06);
}
.main-container {
width: 960px;
margin: auto;
position: relative;
background-color: white;
}
.headercontainer {
margin-top: 20px;
background-color: #ddf5ce;
}
.topfiller {
background-image: url("../Images/Aztec2white.jpg");
background-repeat: repeat-x;
}
img.RestLogo {
position: relative;
left: 7px;
}
.btmfiller {
background-image: url("../Images/Aztec2white.jpg");
background-repeat: repeat-x;
margin-bottom: -5px;
}
.pic-filler {
margin-top: -25px;
}
#pic-filler {
display: block;
margin-left: auto;
margin-right: auto;
}
#mainMotto {
font-family: 'Rock Salt', cursive;
color: rgba(11, 123, 40, 0.86);
font-size: 110%;
letter-spacing: -1.5px;
position: absolute;
top: 35px;
left: 290px;
}
.headercontact p {
display: block;
position: absolute;
top: 30px;
left: 780px;
line-height: 60%;
font-family: 'Frank Ruhl Libre', sans-serif;
font-size: 87%;
color: brown;
}
.headercontact span {
font-weight: bold;
font-size: 130%;
}
.headercontact a {
text-decoration: none;
font-family: 'Frank Ruhl Libre', sans-serif;
color: #921f0c;
}
.headerschedule {
display: block;
position: absolute;
left: 325px;
top: 120px;
}
.headerschedule p {
line-height: 70%;
font-size: 20px;
color: #0B3504;
font-size: 95%;
font-weight: 600;
}
/*social media icons*/
.socialmedia {
position: absolute;
top: 145px;
left: 800px;
letter-spacing: 2px;
}
.socialmedia a {
display: inline-block;
}
/*Navigation Menu*/
.navigationbar {
margin: 0px;
border-top: 1px solid rgba(106, 180, 83, 0.82);
}
.navigationbar ul {
margin-top: 0;
margin-bottom: 0;
text-align: center;
}
.navigationbar li {
display: inline-block;
margin-top: 10px;
list-style: none;
margin-right: 15px;
padding: 10px 15px;
font-family: 'Indie Flower', cursive;
font-size: 120%;
text-transform: uppercase;
background-color: #e0ecd2;
border: 2px solid rgba(106, 180, 83, 0.82);
border-radius: 16px;
}
.navigationbar a {
display: block;
color: #928c1e;
text-decoration: none;
}
nav li:hover {
background: #d0edaf;
}
@media screen and (max-width: 700px) {
.navigationbar li {
width: 50%;
}
}
/*End of Navigation Menu*/
/*Body content*/
.bodytxtcontent {
padding-left: 20px;
padding-right: 20px;
text-align: justify;
}
.body-paragraph {
max-width: 100%;
background-repeat: no-repeat;
background-size: 100%;
font-family: 'Cormorant Upright', serif;
font-size: 150%;
line-height: 130%;
color: rgba(38, 150, 44, 0.9);
font-weight: bold;
}
.bodyimg {
max-width: 45%;
box-sizing: border-box;
float: right;
margin: 7px 0 0 15px;
}
/*Not showing next to body-paragraph*/
#cantinapic {
max-width: 100%;
height: auto;
}
/*end of body content*/
/*Table content*/
.tablecontainer {
background-image: url(../Images/Tacos-de-Barbacoa1.png);
background-repeat: no-repeat;
background-size: cover;
}
table {
border-spacing: 0;
border-collapse: collapse;
margin-top: 25px;
width: 100%;
}
table td {
padding: 10px;
border: 2px solid green;
font-size: 18px;
color: #11100f;
text-align: center;
}
tr .items-header {
font-weight: bold;
text-align: right;
font-size: 22px;
padding: 10px;
}
/*End of Table content*/
/*Contact Us*/
form {
background-color: #efe9e9;
padding-top: 15px;
padding-left: 15px;
padding-bottom: 15px;
border-radius: 7px;
}
.First-Half {
width: 60%;
float: left;
margin-top: 30px;
}
.First-Half h2 {
color: #2f2fa5;
text-align: center;
margin-right: 20px;
}
address {
line-height: 75%;
font-size: 20px;
text-align: center;
}
.First-Half p {
text-align: center;
font-size: 20px;
font-style: italic;
}
.First-Half a {
text-decoration: none;
margin-left: 12em;
font-size: 17px;
font-style: italic;
}
iframe {
margin-top: 10px;
margin-left: 5em;
box-shadow: 10px 10px 5px #aaaaaa;
border-radius: 5px;
}
table .table-schedule td {
text-align: left;
border: none;
}
.days {
width: 25%;
font-weight: bolder;
}
.time {
width: 75%;
}
.Second-Half {
width: 35%;
float: left;
margin-top: 30px;
}
.Second-Half h3 {
color: #443c3e;
line-height: 87%;
}
label {
font-family: 'Frank Ruhl Libre', sans-serif;
}
.hidden-label {
position: absolute;
height: 0;
width: 0;
overflow: hidden;
visibility: hidden;
}
input[type="text"],
input[type="tel"],
input[type="email"] {
display: block;
box-sizing: border-box;
margin: 10px;
padding: 10px 10px;
font-family: 'Frank Ruhl Libre', sans-serif;
font-size: 100%;
border: 1px solid #CDCDCD;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
border: 1px solid #CDCDCD;
box-shadow: inset 2px 2px 2px rgba(0, 0, 0, .15);
}
input[type="submit"] {
display: block;
width: 60%;
box-sizing: border-box;
margin: 10px;
padding-top: 7px;
padding-bottom: 7px;
background-color: #9b8181;
border: 1px solid #9b8181;
border-radius: 3px;
font-family: 'Frank Ruhl Libre', sans-serif;
font-size: 100%;
}
input[type="submit"]:focus,
input[type="submit"]:hover {
border: 1px solid #CDCDCD;
background-color: rgba(155, 129, 129, 0.84)
}
textarea {
display: block;
box-sizing: border-box;
margin: 10px;
border: 1px solid #CDCDCD;
border-radius: 3px;
}
textarea:focus {
border: 1px solid #CDCDCD;
box-shadow: inset 2px 2px 2px rgba(0, 0, 0, .15);
}
/*End of Contact Us*/
/*footer section*/
#footer {
width: 960px;
margin-top: 100%;
padding: 5px;
text-align: center;
font-size: 18px;
background-color: #e6f9da;
}
.cardsaccepted {
width: 725px;
margin: 10px 15px;
}
#copyright {
margin-left: auto;
margin-right: auto;
text-align: center;
color: #9c9898;
}
#cards-accepted {
max-width: 35%;
height: auto;
}
.cards-paragraph p {
font-family: 'Frank Ruhl Libre', sans-serif;
font-size: 85%;
font-weight: bold;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Taqueria El Perico Loco</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Custom styles for this template -->
<link href="https://fonts.googleapis.com/css?family=Frank+Ruhl+Libre" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rock+Salt" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cormorant+Upright" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link href="CSS/style.css" rel="stylesheet">
</head>
<body>
<div class="main-container">
<div class="headercontainer">
<div class="topfiller">
<img src="Images/Aztec2white.jpg">
<!--Needs to be background img and repeat x-->
</div>
<!--end of topfiller div-->
<a href="index.html"><img class="RestLogo" src="Images/Pericos-Restaurant.jpg" alt="El Perico Loco" width="135" height="auto"></a>
<div class="restaurantmotto">
<h1 id="mainMotto">Authentic Mexican Food with Tradition</h1>
</div>
<!--end of restaurantmotto-->
<div class="headercontact">
<p><span>Come visit us at</span>
<br></br>
150 Coronado Ave
<br></br>
Daly City, CA 94051
<br></br>
650.758.1000
<br></br>
<a href="mailto:info@elpericoloco.com">info@elpericoloco.com</a></p>
</div>
<!--end of headercontact-->
<div class="headerschedule">
<p>Sundays thru Thursdays: 11am - 11pm
<br></br>
Fridays & Saturdays: 11am to midnight</p>
</div>
<!--end of headerschedule-->
<div class="socialmedia">
<a href="http://www.facebook.com"><img src="Images/apple-touch-icon-precomposed.png" width="30" height="30"></a>
<a href="http://www.twitter.com"><img src="Images/Twitter_icon.png" width="30" height="30"></a>
<a href="http://www.google.com"><img src="Images/GooglePlus-logos-02.png" width="30" height="30"></a>
</div>
<!--end of div social media-->
<div class="btmfiller">
<img src="Images/Aztec2white.jpg">
<!--Needs to be background img and repeat x-->
</div>
<!--end of btmfiller div-->
</div>
<!--end of headercontainer div-->
<nav class="navigationbar">
<ul class="group">
<li><a href="index.html">Home</a></li>
<li><a href="Menu.html">Menu</a></li>
<li><a href="Contact.html">Contact</a></li>
</ul>
</nav>
<div class="bodytxtcontent">
<br></br>
<h3></h3>
<div class="pic-filler">
<img id="pic-filler" src="Images/static1.squarespace.com.png" alt="pic filler">
</div>
<!--end of pic-filler div-->
<div class="body-paragraph">
<div class="bodyimg">
<img id="cantinapic" src="Images/cantinabqt.jpg" alt="Inside Restaurant">
</div>
<!--end of bodyimg div-->
<p>Growing up in La Estancia de Los Lopez, Nayarit Mexico and being the oldest of seven, I gravitate to one of the family businesses. My father's love of butchering and breaking down carcass, turn into a taco stand in front of our house. Being my
father's apprentice, I would rush home from school to cook all our meats and learn his cooking skills. Although, I loved learning new cooking skills the best part of it, was spending one on one time with my father.</p>
<p>As I spent more and more time in the kitchen, I began to realize how much flavor meant to me. I found myself many times creating new recipes that one day I dreamed of putting out in my restaurant. A dream that for many years seemed surreal, until
I meet my wife who helped develop the menu that has made us who we are today in the restaurant industry.</p>
<p>We started in 1999 as a street vendor on East 14th and 42nd in Oakland and progressively brought our Mexican flavors to our home town in San Leandro in 2007.</p>
</div>
<!--end of body-paragraph-->
</div>
<!--End of bodytxtcontent-->
<div class="cardsaccepted">
<img id="cards-accepted" src="Images/all cards accepted.jpg" alt="Cards Accepted image">
<div class="cards-paragraph">
<p>We proudly accept this cards. No Minimum!</p>
</div>
<!--end of cards-paragraph-->
</div>
<!--end of cardsacceped div. It wraps img cards id=cards-acepted and cards-paragraph -->
<footer id="footer">
<span id="copyright"> ©All Rights Reserved 2016</span>
</footer>
</div>
<!--End of main-container div-->
</body>
</html>
最佳答案
只需从 #footer
中删除 margin-top: 100%
。
为什么你仍然需要那个边距?
关于html - 删除 html 主体上的白色间隙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43435414/
对于我正在使用的启动画面: setContentView(R.layout.activity_home); new Handler().postDelayed(new Runnable() {
这是我的问题。我有一个应用程序,它打开一个文件打开对话框,我试图将文件路径和文件名输入到“文件名:”组合框部分。 应用程序加载了您登录的表单。这将打开另一个表单,其中有许多按钮。选择其中一个按钮会打开
我正在使用 sjPlot 的 plot_model() 绘制回归模型。我想将我的线条颜色从 sjPlot 主题(红色和蓝色线条)更改为黑白或灰度。但是,当我使用 set_theme(theme_bw(
所以看起来SpriteMaterial的默认颜色是0xFFFFFF。这似乎意味着 Sprite 没有颜色。如果我将 Material 的颜色属性更改为 0xFF0000, Sprite 将显示为红色。
我需要在文档中找到最大的空白区域,并使用python在其中放置QR码,以显示其坐标,中心点和区域。 我认为OpenCV和Numpy应该足以完成此任务。 使用什么样的THRESH?由于扫描类型很多: 灰
Android 选项卡上的波纹效果默认为白色。我想在 tablayout 上添加波纹效果,但我的选项卡背景已经是白色的,并且波纹效果在其上不可见。 有没有办法改变 tabLayout 波纹效果的颜
我正在尝试在我的应用程序上显示一个基本的谷歌地图,但它不起作用,它显示一个白屏,即使我有网络连接,我也检查了我的 MANEFIST 一百次,我生成了一个 deubg key ,并确定它是是的 我想是否
我有一个带有框阴影的蓝色框,文本颜色为白色,如下所示: . 是否可以添加内阴影?喜欢this (jsfiddle)?它不适用于白色文本,就像我的示例一样。 body { /* This has t
这是我的代码: body{ background: url(https://static.pexels.com/photos/29628/pexels-photo.jpg) no-repeat
我已经从 w3school 实现了一个 slider 。我还从另一个例子中实现了这些点来跟踪幻灯片。如果我单击它们,它们工作正常,问题是我无法使当前/事件点(从实际位置的幻灯片)显示为纯白色,让你知道
我是 bootstrap 的新手,试图提高我的技能,我已经制作了 5 个盒子,如您所见(左侧两个,右侧 3 个),我的问题是为什么盒子编号“5”看起来不同,而不是相应的与数字 2 和 4 不在同一行,
我一直在研究一种导航,它会在滚动过标题后获得不透明度并缩小 Logo - 一切都很好,除了当导航栏覆盖白色背景上的段落时,它会变成透明并造成视觉困惑.我猜这可能是使用 rgba 的问题?我想保持不透明
有一个关于名为 Rockwell Std Light 的字体的问题。我在 Photoshop 中用蓝色背景显示白色文本,在 Dreamweaver 中也做了同样的事情。但是,网页中的字体总是看起来比较
我正在创建一个应用程序,它会在某个时候打开照片库。问题是照片库中的状态栏是黑色透明的,而我想要一个默认的应用程序(纯白色)。有什么办法可以改变它..? 我想补充一点,我试过这个:iOS SDK - H
我正在尝试使用 AForge.NET 来检测图像中的粗白线。 这就像我得到的管道一样,是应用阈值过滤器后我想要的结果。 我知道如何检测形状并且我已经在这样做了,但是这在任何形状下都不匹配,因为它没有边
我正在尝试让 Tabs 在 Android 上通过 compose 与 TabRow 一起使用。我想要的是 TabRow 有白色背景。 如文档 (https://developer.android.c
我已经为我的 Visual Studio 安装了最新的 WiX(安装程序),当我想设置图标时,它总是以空白结束。我正在尝试设置“所有 Windows 软件”中条目的图标 在下面的图片中你可以看到图标的
为什么选择后微调器文本会变成空白? 如果我使用 getActivity().recreate(),微调器文本会闪烁,然后变为空白;做出选择后。 我正在使用 recreate 根据微调器选择加载区域设置
我最近遇到了 的问题每当我滚动时,网站顶部/底部都会出现白色块 它更大一点。白色块是 的一部分正文背景 ,因为改变 body backgroundcolor 会使块也改变颜色。 我已经试过了设置 bo
我在 iOS7、iPhone 4 及更高版本的状态栏上遇到了一些问题。因为我的应用程序的背景是深色的,所以我需要状态栏是白色的,这样看起来不错。但是,当最小化应用程序、等待几秒钟并返回应用程序时,它会
我是一名优秀的程序员,十分优秀!