在一台新系统上yum装完zabbix后发现web页面不能正确显示css样式表。页面如下图:看了下目录发现.css文件和图片文件都在,不是文件路径的问题。百度了下发现是mime把text/css解析成text/html造成的。于是干脆找了一份比较全的mime.types文件放到/etc下,重命名为apache_mime.typ..
分类:
Web程序 时间:
2015-11-02 21:27:15
阅读次数:
1470
1、纵向菜单 纵向菜单代码示例 <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>纵向导航菜单</title>
<style type="text/css">
*{
margin: 0;
...
分类:
Web程序 时间:
2015-10-30 09:23:22
阅读次数:
320
div+CSSCSS需引用在head中例:<styletype="text/css"></style>对不同DIV不同的命名例用id例如:<divid=‘header‘>12</div>而此时如果需要来控制此div时在CSS中需使用‘#header{}’例:<html><head><styletype="text/css">#header{widt..
分类:
Web程序 时间:
2015-10-28 15:49:55
阅读次数:
151
<!DOCTYPE?html>
<html>
<head>
<meta?charset="UTF-8">
<title>Document</title>
<style?type="text/css">
*{margin:0;padding:0;list-style:none;}
a{text-decoration:?none;color:?#fff;}
#flash{width:?...
分类:
Web程序 时间:
2015-10-27 11:48:33
阅读次数:
280
<!DOCTYPE?html>
<html>
<head>
<style?type="text/css">
/*data?loading*/
#nprogress?{?pointer-activities:?none?}
#nprogress?.bar?{?background:?#a0ce4e;?position:?fixed;?z-index:?100;?...
分类:
其他好文 时间:
2015-10-21 19:29:19
阅读次数:
200
一,基本语法 //1,css引入方法 ????
<link?rel="stylesheet"?type="text/css"?href="styles.css"> 2,css书写格式 h1,h2{
???color:blue;font_size
} 二,派生选择器: ??????? 根据元素其位...
分类:
Web程序 时间:
2015-10-21 12:50:18
阅读次数:
257
(1)用expression 鼠标滑过变色: <style type="text/css"> <!--? table?{?background-color:#000000;?cursor:hand;?width:100%;?} td?{ onmouseover: expression(onmouseover=function (){this.style.bo...
分类:
Web程序 时间:
2015-10-14 18:16:28
阅读次数:
327
<!--[if IE]> <style type="text/css"> .mark { background:transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#c80e92cb,endColorstr=#c80e92cb); zoom: 1; } </style> <![endif]...
分类:
其他好文 时间:
2015-10-10 15:40:12
阅读次数:
141
1:引入相应的css和js ? ? ? css:? <link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="<%=path%>/css/bootstrap-datetimepicker.css" rel="stylesheet" type="...
分类:
其他好文 时间:
2015-09-28 19:31:15
阅读次数:
211
代码如下:<html>
<head></head>
<styletype="text/css">
.div1{
width:500px;
height:500px;
background-color:red;
position:absolute;
}
.div2{
width:300px;
height:200px;
background-color:blue;
position:absolute;
top:50%;
left:50..
分类:
其他好文 时间:
2015-09-24 19:37:46
阅读次数:
147