Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jianchayuan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqing
jianchayuan
Commits
f43b3769
Commit
f43b3769
authored
Nov 09, 2023
by
zhangyudan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
525592b2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
19 deletions
+85
-19
.DS_Store
.DS_Store
+0
-0
jcqy_nwq.html
jcqy_nwq.html
+26
-12
.DS_Store
static/.DS_Store
+0
-0
common.css
static/css/common.css
+59
-7
camera.png
static/images/camera.png
+0
-0
No files found.
.DS_Store
0 → 100644
View file @
f43b3769
File added
jcqy_nwq.html
View file @
f43b3769
...
...
@@ -27,6 +27,9 @@
<body>
<header
class=
"header"
></header>
<div
class=
"content"
>
</div>
</body>
...
...
@@ -34,21 +37,32 @@
<!-- <script src="static/js/flexible.js"></script> -->
<script
src=
"static/js/rem.js"
></script>
<script
type=
"text/javascript"
>
$
(
function
()
{});
$
(
function
()
{
//
var
arr
=
[{
top
:
'1rem'
,
left
:
'1rem'
},
{
top
:
'2rem'
,
left
:
'2rem'
}]
var
divElement
=
document
.
querySelector
(
'.content'
);
console
.
log
(
divElement
)
let
htmlTxt
=
''
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
console
.
log
(
divElement
)
htmlTxt
=
htmlTxt
+
'<img class="camera" src="./static/images/camera.png" '
+
' style=top:'
+
arr
[
i
].
top
+
";left:"
+
arr
[
i
].
left
+
' onclick="handleClick()"></img>'
// 使用 innerHTML 添加元素
}
divElement
.
innerHTML
=
htmlTxt
;
});
function
handleClick
(
areaNumber
)
{
// 根据不同的区域执行不同的操作
switch
(
areaNumber
)
{
case
1
:
alert
(
"点击了区域 1"
);
// 执行区域 1 的操作
break
;
case
2
:
alert
(
"点击了区域 2"
);
// 执行区域 2 的操作
break
;
// 添加更多的 case 语句处理其他区域
}
}
function
showTooltip
(
event
,
content
)
{
...
...
static/.DS_Store
0 → 100644
View file @
f43b3769
File added
static/css/common.css
View file @
f43b3769
body
,
ul
,
ol
,
li
,
p
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
form
,
fieldset
,
table
,
td
,
img
,
div
{
margin
:
0
;
padding
:
0
;
border
:
0
;
}
body
,
ul
,
ol
,
li
,
p
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
form
,
fieldset
,
table
,
td
,
img
,
div
{
margin
:
0
;
padding
:
0
;
border
:
0
;}
ul
,
ol
{
list-style
:
none
;}
select
,
input
,
img
,
select
{
vertical-align
:
middle
;}
a
{
text-decoration
:
none
;}
a
:link
{
color
:
#009
;}
a
:visited
{
color
:
#800080
;}
a
:hover
,
a
:active
,
a
:focus
{
color
:
#c00
;
text-decoration
:
underline
;}
ul
,
ol
{
list-style
:
none
;
}
select
,
input
,
img
,
select
{
vertical-align
:
middle
;
}
a
{
text-decoration
:
none
;
}
a
:link
{
color
:
#009
;
}
a
:visited
{
color
:
#800080
;
}
a
:hover
,
a
:active
,
a
:focus
{
color
:
#c00
;
text-decoration
:
underline
;
}
.content
{
position
:
relative
;
}
.camera
{
position
:
absolute
;
}
static/images/camera.png
0 → 100644
View file @
f43b3769
2.35 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment