Skip to content
切换导航面板
P
项目
G
群组
S
代码片段
帮助
成立
/
weiduh5
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
代码片段
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2d5f01e3
authored
Nov 27, 2017
by
颜景龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改图片
parent
36964ce9
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
110 行增加
和
3 行删除
gift/gift.html
personal/class.css
prime/class.css
prime/primeIntroExtend.html
gift/gift.html
0 → 100644
查看文件 @
2d5f01e3
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=Edge,chrome="
>
<meta
http-equiv=
"x-dns-prefetch-control"
content=
"on"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=.0, maximum-scale=.0, user-scalable=no"
>
<meta
name=
"format-detection"
content=
"telephone = no"
/>
<title></title>
<style>
html
{
font-size
:
16px
;
}
html
,
body
{
margin
:
0
;
padding
:
0
;
background
:
#333740
;
font-family
:
-apple-system-font
,
"Helvetica Neue"
,
sans-serif
;
width
:
23.4375rem
;
color
:
#FFF
;
}
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
*
::before
,
*
::after
{
box-sizing
:
border-box
;
}
.image-list
{
width
:
23.4375rem
;
}
.image-list
>
img
{
display
:
block
;
width
:
23.4375rem
;
border
:
0
;
outline
:
0
;
float
:
left
;
}
h3
{
background
:
#292C35
;
color
:
#FFF
;
padding-left
:
1.25rem
;
line-height
:
2rem
;
}
.class-banner
{
width
:
100%
;
height
:
12.5rem
;
background-size
:
cover
;
flex-direction
:
column
;
background-position
:
center
;
}
</style>
</head>
<body>
<div
class=
"class-banner"
>
</div>
<script
src=
"https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"
></script>
<script
type=
"text/javascript"
>
var
HTTP_URL
=
'http://192.168.31.182:8080/wedo-fit'
;
function
getUrlParam
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
//构造一个含有目标参数的正则表达式对象
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
//匹配目标参数
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
//返回参数值
}
$
(
document
).
ready
(
function
()
{
$
(
window
).
ready
(
function
(){
$
(
'html'
).
css
({
'font-size'
:
$
(
window
).
width
()
/
375
*
16
});
});
$
(
window
).
resize
(
function
(){
$
(
'html'
).
css
({
'font-size'
:
$
(
window
).
width
()
/
375
*
16
});
});
var
id
=
getUrlParam
(
'id'
);
if
(
id
)
{
$
.
post
(
HTTP_URL
+
"/wedofit/user/web/page"
+
id
,
function
(
data
){
var
result
=
JSON
.
parse
(
data
);
if
(
result
.
code
==
0
)
{
var
list
=
result
.
data
;
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
var
img
=
$
(
`<img src="
${
HTTP_URL
}${
list
[
i
]}
" />`
);
img
.
appendTo
(
'.image-list'
);
}
}
});
}
})
</script>
</body>
</html>
\ No newline at end of file
personal/class.css
查看文件 @
2d5f01e3
...
@@ -19,7 +19,7 @@ body {
...
@@ -19,7 +19,7 @@ body {
.class-banner
{
.class-banner
{
width
:
100%
;
width
:
100%
;
height
:
1
0
rem
;
height
:
1
2.5
rem
;
background-size
:
cover
;
background-size
:
cover
;
flex-direction
:
column
;
flex-direction
:
column
;
background-position
:
center
;
background-position
:
center
;
...
...
prime/class.css
查看文件 @
2d5f01e3
...
@@ -19,7 +19,7 @@ body {
...
@@ -19,7 +19,7 @@ body {
.class-banner
{
.class-banner
{
width
:
100%
;
width
:
100%
;
height
:
1
0
rem
;
height
:
1
2.5
rem
;
background-size
:
cover
;
background-size
:
cover
;
flex-direction
:
column
;
flex-direction
:
column
;
background-position
:
center
;
background-position
:
center
;
...
...
prime/primeIntroExtend.html
查看文件 @
2d5f01e3
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
.class-banner
{
.class-banner
{
width
:
100%
;
width
:
100%
;
height
:
1
0
rem
;
height
:
1
2.5
rem
;
background-size
:
cover
;
background-size
:
cover
;
flex-direction
:
column
;
flex-direction
:
column
;
background-position
:
center
;
background-position
:
center
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论