- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在正确设置页脚时遇到困难。我有一个底部导航栏作为我的页脚的一部分,它工作正常(颜色:#7A7A7A)。问题在于随后的版权信息。它有一个地址和电话号码。我希望页脚的这一侧有一个黑色背景(#000)。这部分在 copyRight 下的 css 中标记,我没有得到任何结果。有什么可能是错误的想法吗?
这是我的 Live EXAMPLE .谢谢
CSS
html, body {
margin:0;
padding:0;
height:100%; /* needed for container min-height */
background:#333333;
font-family: trebuchet, 'trebuchet ms', 'tahoma', sans-serif;
font-size:small;
color:#5e5e5e;
line-height: 130%;
}
/****** COLORBLOCK: this is the orangey-yellow bar behind the wrapper in the background. ******/
#colorblock {
position: absolute;
top: 60px;
left: 0px;
background: #c69a55;
z-index: 0;
height: 65px;
width: 100%;
padding: 0px;
margin: 0px;
}
/**************************************************/
div#container {
position:relative; /* needed for footer positioning*/
margin:0 auto; /* center, not in IE5 */
width:925px;
background:#f0f0f0;
height:auto !important; /* real browsers */
height:100%; /* IE6: treaded as min-height*/
min-height:100%; /* real browsers */
border-right: 15px solid #000000;
border-left: 15px solid #000000;
}
div#contentArea {
padding:1em 1em 5em; /* bottom padding for footer */
}
div#contentArea p {
text-align:justify;
padding:0 1em;
}
#content {
margin-left: 240px;
margin-right: 0 auto;
background: #ebebeb;
padding: 5px;
width:635px;
height: 400px;
}
/****** TOP BANNER: This is the banner with Greg's List logo and main navigation. Also includes the styles for the main navigation links. ******/
div#header {
/*padding:1em;*/
height: 175px;
border-top:15px solid #000000;
}
div#header p {
margin:0;
}
/****** LEFT COLUMN: This is the left gray column next to the content. Features the styling for the log-in form and the location links. ******/
#left2 {
float: left;
width: 200px;
background: #dddddd;
-moz-border-radius: 10px;
border-radius: 10px;
margin-right: 15px;
padding: 5px;
height: 400px;
}
/****** FOOTER: This is the junk at the bottom of the page. Do NOT remove the clear div; it's what makes it stick to the bottom. ******/
div#footer {
position:absolute;
width:100%;
bottom:0; /* stick to bottom */
background:#7A7A7A;
border-bottom:15px solid #000000;
}
div#footer p {
padding:1em;
margin:0;
}
a.footer {
color: #c7c7c7;
font-size: 80%;
padding-right: 20px;
letter-spacing: 1px;
}
p {
margin:0 0 1em;
}
#copyRight{
background:#000;
color: #FFF;
font-size: 75%;
bottom: 0;
}
.left{float:left;}
.right{float:right;}
</style>
最佳答案
您正在 float #copyRight 的内容,因此需要 float 它才能正确包含它们。将此添加到#copyRight:
float: left;
width: 100%;
关于CSS:多色页脚背景问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11240214/
我想要一种不同的方式来创建多色 JLabel。(多色 = 不同前景色的文本部分) 到目前为止我找到的唯一解决方案(也是我目前使用的)是在 html 中设置文本。但是我遇到了问题... 当 Layout
是否可以在 UILabel 中创建多色文本?即,如果我的文字是: “敏捷的棕色狐狸” q 和 b 为蓝色,其余文本为黑色? 我感觉我必须使用 UIWebView 并以 HTML 形式呈现文本才能完成此
我想在我的 Richtextbox 多色中制作一行文本。我尝试了网络上提供的各种实现,并阅读了 SelectedText 和其他主题,但似乎无法让它按照我想要的方式工作。 这是我到目前为止所拥有的 R
我想做的是在导航栏中获得多种颜色?当前栏如图所示 导航栏 标志 导航栏 除了我似乎只能得到一种颜色 这是我目前拥有的代码的链接:http://jsfiddle.net/ju47nkgu/
我想渲染一行文本,其中一些单词以不同的颜色突出显示。 理想情况下,我会使用带有反应的跨度标签来完成此操作。 想知道如何使用 React-native 做同样的事情? 最佳答案 您可以通过使用嵌套文本组
Google map 标记可以采用复杂的 svg 路径作为其图标,如下所示: var baseSvg = { x1 : "m 0,0 l45,0 l 190,225 l -45,0 l -19
在我的应用程序中,我在里面实现了一个 SwiftyCharts,我需要根据 JSON 值中的性别选择显示多种颜色。在我的例子中,我得到了一个值来自 json,仅返回多种颜色。但是我无法显示任何人都可以
我正在编写并行代码来枚举大量 CSV 文件,每个文件都包含历史股票数据(超过 6500 个代码),并计算每只股票是否已达到历史最高点。 我已经实现了一个线程池和 TThread 后代类,以在线程之间平
我是一名优秀的程序员,十分优秀!