这是我第一次在我的ASP.net Web应用程序中使用bootstrap主题,因此我在CSS编辑方面遇到了一些困难.
我在网上得到了这个bootstrap模板,为了满足我的需要,我想将页脚div的颜色改为另一种颜色.这是html中的代码
<div class="footer_bottom">
<div class="copy">
<p>Copyright © 2014</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
这是css
.footer_bottom {
padding: 2em 0;
/*background: #7cc4cc;*/
background: #5DBCD2;
Run Code Online (Sandbox Code Playgroud)
}
基本上,我想将#7cc4cc的div颜色改为#5DBCD2.当我在谷歌浏览器中运行我的页面并选择检查元素选项时,代码可以正常工作,但在css属性背景中:#7cc4cc在线背景上面被删除:#5DBCD2(没有被删除)但颜色是显示的div仍然是#7cc4cc.总之,由于某种原因,我无法更改主题的CSS颜色属性.任何帮助将不胜感激.
在我的数据库中,日期存储为dd/mm/yyyy.当我检索它时,我想分别在字符串日,字符串月和字符串年中分割日期.我应该怎么做呢?"/"将是分隔符是吗?
我目前正在将JTable与TableRowSorter结合使用,以为用户实现搜索功能。下面是我的代码
tblDutyList = new JTable() {
@Override
public java.awt.Component prepareRenderer(
TableCellRenderer renderer, int row, int col) {
java.awt.Component comp = super.prepareRenderer(renderer, row,
col);
Object value = getModel().getValueAt(row, 4);
if (value.equals("Inactive")) {
comp.setBackground(Color.white);
comp.setForeground(Color.GRAY);
} else {
if (tblDutyList.isCellSelected(row, col)) {
comp.setBackground(Color.lightGray);
comp.setForeground(Color.BLACK);
} else
comp.setBackground(Color.white);
comp.setForeground(Color.BLACK);
}
return comp;
}
};
tblDutyList.setFillsViewportHeight(true);
String dutyId = "0", dutyName = "", dutyDesc = "", dutySectorName = "", dutyStatus = "", dutyRemoveReason = "";
Duty d = new Duty(Integer.parseInt(dutyId), dutyName, dutyDesc,
dutySectorName, dutyStatus, …
Run Code Online (Sandbox Code Playgroud)