作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在为一个副元素开发网站,但我在网络开发方面没有太多经验。在过去的一个小时里,我一直在绞尽脑汁想弄清楚为什么我的页面是 <body>
。元素仅呈现与我的视口(viewport)一样高,而不是足够高以包含其中的内容。结果是,当我向下滚动页面时,正文内的表格垂直溢出,正文的黑色背景明显在其中的内容之前结束。这是我的正文 CSS:
html
{
background: url(../images/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body
{
width: 80%;
font-family: Verdana;
font-size: 14;
color: white;
background: rgba(0, 0, 0, .75);
margin-left: auto;
margin-right: auto;
}
不幸的是,我无法发布图片,但能够看到黑色内容背景的尽头并不是特别好看。
最佳答案
加入你的 body :
height: auto;
关于html - 使 html 主体足够大以容纳其中的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20929601/
对于我的问题,我找不到更好的措辞。 在我的应用程序中的某个时刻,我设置了一些非常密集的动画。问题是,在高端设备上,动画运行流畅且赏心悦目。另一方面,我测试过的一台低端设备在制作动画时表现非常糟糕。 试
我正在修补 OTP 模块 ( yubico_pam ),并尝试访问管理员选择的控制标志(例如必需,足够, ETC)。 有什么想法吗?这是否可行(无需解析文件)? 最佳答案 无法在 API 中查询此信息
我有一些为 Linux 编写的 C 代码,依赖于套接字和 arpa/inet.h 以及 libusb.h,我想在 MinGW 下为 Windows 编译它。 (请注意,当前项目只有一个非常简单的 Ma
我是一名优秀的程序员,十分优秀!