![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
bnmnba
这个作者很懒,什么都没留下…
展开
-
通过RGB颜色得到十六进制的颜色值
没有验证越界。代码如下: public class Util { /** * 通过RGB颜色得到十六进制的颜色 * @param r 0-255 * @param g 0-255 * @param b 0-255 * @return 255,0,253返回FF00FD */ public static String getColorI...原创 2012-02-07 13:26:46 · 620 阅读 · 0 评论 -
让页面有一个最小高度并且高度自动增长兼容浏览器的css设置
下面这个可以让class是box4的html标签有一个最小高度、自动增长、兼容ie、chrome、firefox:.box4{ background-color:#F9C; min-height:200px; width:125px; height:200px; float:left;} [class].box4{height:auto;} 引文:http://www....原创 2012-02-17 17:31:02 · 204 阅读 · 0 评论 -
给javascript自带类对象封装一个新的方法
使用prototype这个特殊的属性实现: String.prototype.isDate = function(){ var regex = new RegExp("^[\d]([-|/])[\d]{1,2}([-|/])[\d]{1,2}$"); console.log(this); return regex.exec(this); } var...原创 2012-02-23 15:03:25 · 86 阅读 · 0 评论 -
javascript获得对象的字段和方法
javascript获得对象的字段和方法:直接上代码,运行一下就明白了:出自:http://www.haogongju.net/art/1433636 <html><head><style type="text/css"></style></head><body> <a hre原创 2012-08-25 12:52:45 · 334 阅读 · 0 评论 -
Uncaught Error: HierarchyRequestError: DOM Exception 3
chrome报错:Uncaught Error: HierarchyRequestError: DOM Exception 3 原因:不能完成指定的dom操作。 例如:添加一个子节点(appendChild ),而这个子节点有一个id属性,同时这个id被其他已经存在一个节点(如这个子节点的父节点)使用。 我遇到问题的演示代码: var msg="hello";...原创 2013-05-31 19:27:15 · 346 阅读 · 0 评论 -
javascript引入后乱码,js文件乱码,html乱码,ajax乱码,ajax,json
这里指的所有乱码都是指在文本编辑器里正常,但是在浏览器里乱码。这里有个例子,可以解决几个问题。 浏览器中html乱码和js乱码可能是没有<!DOCTYPE html>和<meta http-equiv="Content-Type" content="text/html; charset=utf-8">html的头很重要,不能写错,甚至引号都不能...原创 2012-09-12 13:34:32 · 201 阅读 · 0 评论 -
带图片上传文件上传的CKEditor(java实现后台文件存储)
解压后放到web项目webapp文件夹里,空文件夹upload也需要。java类放到src里。 官方示例需要修改,才会显示上次tab页:http://localhost:8080/web/js/ckeditor/samples/index.html <script src="../ckeditor.js"></script> <script s...原创 2016-07-14 16:04:57 · 390 阅读 · 0 评论 -
fusioncharts-suite-xt设置透明背景
使用[JavaScript版]fusioncharts-suite-xt-v3.9.0版本测试通过,chrome/firefox/IE8 都支持1.new FusionCharts加上:"containerBackgroundOpacity":"0",//背景透明2.fusioncharts.theme.fint.js文件theme.base.chart属性加上{bgAlpha:"0",canv...原创 2016-01-05 16:52:30 · 232 阅读 · 0 评论