<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.div1{
width:200px;
height:500px;
float:left;
border:1px solid #069;
}
.div2{
width:200px;
height:500px;
float:left;
margin-left:10px;
display:inline;
border:1px solid #9C6;
}
.div2 .d2_1{
width:180px;
height:30px;
float:left;
}
.div2 .d2_1 .d2_1_1{
width:100px;
height:30px;
float:left;
background:#966;
}
.div1 .d2_1{
width:180px;
height:30px;
float:left;
}
.div1 .d2_1 .d2_1_1{
width:100px;
height:30px;
float:left;
background:#966;
}
</style>
</head><body>
<div class="div1">
<div class="d2_1">
<div class="d2_1_1"></div>
<input type="button" value="删除" />
</div>
</div>
<div class="div2">
<div class="d2_1">
<div class="d2_1_1"></div>
<input type="button" value="创建" />
</div>
</div>
</body>
</html>
请问下 当我点击右边创建的时候 怎么才能在左边创建个div出来 就是图片红色框框的那个
解决方案 »
- 求大于0小于10万的正整数的正则表达式
- freemaker 的问题 急急! 各位帮个忙在线等待!!
- 请教:怎么样在iframe中调用父窗体中的JS对象
- 大师们 如何算出网页的高度啊 从头到尾 jquery
- 一个很简单的问题
- ●●●●●●●●●●●●●●●●●●●●●●●●●●●怎么这里return和不return都一样啊??????????
- 100分求在javascript中带CheckBox树的选中状态的算法
- 求fckeditor2.x在上传文件或图片后出现乱码问题的解决
- 急需日历控件!!
- 请问如何用javascript实现对文件的操作(包括写入,修改等等)
- ajax实现分页带有省略号
- 关于全局变量的问题
innerHTML("<div>...</div>");
2.
appendChild(document.createElement('div'));