<!DOCTYPE html>
<html>
<head>
<title>图片的增删</title>
<style type="text/css">
* {
list-style: none;
padding: 0px;
margin: 0px;
}
#container {
width: 1000px;
/* margin: 0 auto; */
background-color: pink;
float: left;
}
img {
height: 300px;
width: 300px;
}
ul li {
float: left;
margin-left: 25px;
margin-bottom: 25px;
}
</style>
<script type="text/javascript">
window.onload =function() {
//alert("hello world");
var uploadPic = document.getElementById("uploadPic");
//解决fackpath代码
function getFullPath(obj) {
if(obj) {
//ie
if (window.navigator.userAgent.indexOf("MSIE")>=1) {
obj.select();
return document.selection.createRange().text;
}
//firefox
11-13
4849
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交