- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
所以我现在有:
<div>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li id="last"></li>
</ul>
</div>
所有 <li>
元素有一个属性 border-right:1px solid black
我想要 li#last
是一个空的 <li>
将一直到页面底部的元素,因此 border-right
不会突然停止。
视觉示例:
左边是我目前得到的,右边是我想要实现的。注意最后一个 <li>
元素仍然插入 border-right
一直到底部。
最佳答案
你可以给<ul>
边框而不是 <li>
秒。只需将它(和它的 parent )的高度扩展到 100%
它延伸到整个页面。
html, body, ul {
height: 100%; /* Full height */
margin: 0; /* No margins to interfere */
}
ul {
list-style-type: none; /* No bullets */
background: #f00; /* A background, to see it */
padding: 0; /* No padding */
display: table; /* Shrinkwrap */
border-right: 1px solid black; /* And the border */
}
关于jquery - CSS 高度 :100%; a div halfway down the page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23438923/
我在某些桌面应用程序中看到的一件事是能够随着背景的变化而改变文本的颜色——有效地在单个字符上使用多种颜色。我最常看到进度条显示进度条内的百分比。一般情况下,进度条的颜色会使用较深的背景色,随着进度条的
我使用安装在 Windows 7 上的 ZOC 终端,以便与具有 Linux 操作系统的设备进行通信 zoc picture .通过终端进行的通信效果很好,但最近文本已在页面中途被删除。附上图片。 最
所以我现在有: 所有 元素有一个属性 border-right:1px solid b
我的任务是开发一个用于自动化 GUI 测试的系统,我可以使用一些建议。幸运的是,我们正在进行 GUI 的重大重新设计,从事这项工作的开发人员愿意让他们的代码对自动化更加友好。我的问题是我不确定要他们添
在尝试解决我遇到的 NoMethodError 时,我在某处读到运行 rake db:reset 可能有助于解决问题。我是 Rails 的新手,并且在不知道这样做会做什么的情况下犯了一个错误。当我运行
所以我正在尝试使用 Bootstrap 网格创建一个简单的响应式表单,但这对我来说非常棘手。您可以忽略我发布的大部分内容(初学者的 coldfusion 是多余的)但要注意网格类!
我是一名优秀的程序员,十分优秀!