开发环境:VC++6.0,OpenGL实验内容:使用DDA算法画直线。实验结果: 代码: 1 #include 2 #include 3 4 #define WIDTH 500 //窗口宽度 5 #define HEIGHT 500 //窗口高度 6 ...
分类:
编程语言 时间:
2015-07-03 18:44:46
阅读次数:
198
父级frame中的方法:
function hideOutline() {
$("#outline").hide();
$("#content").attr("style", "width: 97%;");
$(".replyUserList").find("table").attr("style", "left: 35px;");
$("#showOutline").show();
}...
分类:
Web程序 时间:
2015-07-03 16:04:16
阅读次数:
274
方法如下:
$(window.parent.window).width()
注意:
window可以省略,如:$(parent).width(),parent可以有多级,比如:$(parent.parent).width()...
分类:
Web程序 时间:
2015-07-03 16:02:01
阅读次数:
163
WebView(网络视图)能加载显示网页,可以将其视为一个浏览器。它使用了WebKit渲染引擎加载显示网页,使用方法很简单,直接在XML文件中写入webview控件即可,主要代码如下:
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="mat...
分类:
Web程序 时间:
2015-07-03 15:48:43
阅读次数:
281
/*滚动条整体部分 定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar { width: 12px; } /* 滚动条的轨道 内阴影+圆角*/ ::-webkit-scrollbar-track { -webkit-box-shadow...
分类:
Web程序 时间:
2015-07-03 15:32:00
阅读次数:
155
1.ie8不支持carousel组件, 解决方法:将jquery换为jquery1版本,具体原因不清楚~~~~~2.ie8不支持background-color:rgba();解决方法:这样写代码: .carousel-indicators li{ width:24px...
分类:
其他好文 时间:
2015-07-03 15:20:12
阅读次数:
83
用css绘制六边形需要使用到三个容器,分别用于绘制六边形的三个部分,如下图所示:接下来,就是代码了:CSS:如果做成下面这种形状,可以将上面做的进行旋转或者采用浮动的方式:代码:#box4{width:0;border-right:30pxsolid#6c6;border-top:52pxsolid...
分类:
Web程序 时间:
2015-07-03 13:50:13
阅读次数:
169
<html>
????????<head>
????????????????<title>js阻止时间冒泡</title>
????????</head>
????????<style>
????????????????#bubble{width:300px;heigh...
分类:
Web程序 时间:
2015-07-03 12:37:12
阅读次数:
189
根据各个省份的数值从小到大,显示的颜色由浅到深。
效果图:
源代码:
D3 值域渐变地图
.tooltip{
font-family:simsun;
font-size:16px;
width:120;
height:auto;
position:absolut...
分类:
Web程序 时间:
2015-07-03 10:35:27
阅读次数:
240
CCA
names(CCA)
CCB
names(CCA)
CC
barplot(t(CC), beside = TRUE,legend = c("tomcat", "netty"),
width = c(10, 10), args.legend = list(x = "topleft", cex=1),
xlim = c(0, 50),ylim = c(0, 10000),c...
分类:
编程语言 时间:
2015-07-03 10:34:35
阅读次数:
218