- 浏览: 16642 次
- 性别:
- 来自: 贵州省
最新评论
文章列表
//获取屏幕的高度,赋值给div的id="LeftBox"
var winHeight = 0;
function findHeight(){
if (window.innerHeight)winHeight = window.innerHeight;//获取窗口高度
else if ((document.body) && (document.body.clientHeight))winHeight = document.body.clientHeight;//通过深入Document内部对body进行检测,获取窗口大小
if (do ...
有时候;网页在屏幕或者浏览器缩小的情况下,布局会跑乱,为了解决这问题我们可以设置body的最新宽度,
代码如下
body{
background:#FCCFCFC;
min-width: 1220px;
_width: expression(document.documentElement.clientHeight > 1220 ? "1220px" : "");
font-size:13px;
height:101%;/*始终出现Y轴的滚动条*/
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>fieldset标签的使用</title>
<style type="text/css">
</style>
</head>
<body>
<fieldset>
<legend><strong>注册用户信息</strong></legend>
&l ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb ...
首先对SimpleDateFormat有所了解,以下摘自java-doc中
Letter Date or Time Component Presentation Examples
G Era designator Text AD
y Year Year 1996; 96
M Month in year Month July; Jul; 07
w Week in year Number 27
W Week in month Number 2
D Day in year Number 189
d Day in month Number ...
如何去掉网页的横向滚动条,竖向滚动条
有时候特别需要,个别网页要去掉横向滚动条和竖向滚动条,那该怎么去掉呢,很简单,看代码:
让竖条没有:
<body style=`overflow:-Scroll;overflow-y:hidden` >
</body>
让横条没有:
<body style=`overflow:-Scroll;overflow-x:hidden` >
</body>
两个都去掉?更简单了
<body scroll="no" >
</body& ...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>按钮随机颜色测试</title>
</head>
<body>
<script type="text/javascript">
function getbuttom(){
v ...
@ echo off
rem //设置变量
set Nic=本地连接
rem // 招行内网IP
set Addr=99.1.84.6
set Mask=255.255.255.0
set Gway=99.1.84.253
set Dns1=99.1.34.23
/*set Dns2=99.1.34.23*/
rem //以上依次为IP地址、子网掩码、网关、首选DNS,备用DNS
rem //外网IP
set Addr1=99.1.68.52
set Mask1=255.255.255.0
set Gway1=99.1.68.253
set Dns3=99.1.68.3
//s ...
一、CSS文件及样式命名
1、CSS文件命名规范
全局样式:global.css;
框架布局:layout.css;
字体样式:font.css;
链接样式:link.css;
打印样式:print.css;
2、CSS样式命名规范
本人建议:用字母、_号工、-号、数字组成,必须 以 ...
struts.configuration该属性指定加载Struts 2配置文件的配置文件管理器.该属性的默认值是org.apache.Struts2.config.DefaultConfiguration,这是Struts 2默认的配置文件管理器.如果需要实现自己的配置管理器,开发者则可以实现一个实现Configuration接口 ...
<html><head><title>自选添加</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="css/type_css.css" rel="stylesheet"/><script language="javascript" src="js/airways.js">&l ...
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun ...
- 2011-12-14 00:41
- 浏览 626
- 评论(0)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<!--Encoding格式-->
<constant name=" ...
- 2011-12-14 00:40
- 浏览 579
- 评论(0)
hibernate.cfg.xml
- 博客分类:
- Hibernate
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration><session-factory> ...
applicationContext.xml
- 博客分类:
- Spring
<?xml version="1.0" encoding="UTF-8"?>
<!-- xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xsi:schemaLocation="http://www.springfr ...