Archeb 大佬有话说 : 2020-3-24 14:26:09
【个人空间DIY】大伙来看看我空间好看不
本帖最后由 Archeb 于 2020-3-30 09:54 编辑
点击我的头像可查看:lol PC版效果最佳
感谢原来 https://www.hostloc.com/thread-663279-1-1.html @高板惠乃果的思路,我把它做成了只需要js网页运行的
说明:使用的是discuz自带的接口,一切安全的,所有支持个人空间自定义的discuz论坛都可用
以下代码,
①打开pastebin,Ctrl+A全选RAW Paste Data,复制
②在一个有回复评论框的帖子,F12 – Console – 粘贴 – 回车执行
③然后他会弹出一个框,你再把css输入进那个框里面
④确定,然后到自己空间看效果
https://pastebin.com/YEqpfbbt
配合伪元素和SVG,能做出非常非常非常多有趣的效果
如果你不会用,一键版 →→→ https://www.hostloc.com/thread-665260-1-1.html
不过需要具备前端知识
下面这个是我的CSS
body:before {
content: close-quote;
width: 551px;
right: 10px;
top: 30px;
position: fixed;
background: center,url();
background-size: cover;
background-position: center;
height: 200px;
}
body {
background-image: url(https://api.ixiaowai.cn/api/api.php)!important;
background-size: cover;
background-attachment: fixed;
background-position: center;
}
#ct {
opacity: 0.8;
}
#hd {
visibility: hidden;
}
#ct:hover {
opacity: 0.95;
}
#ct {
opacity: 0.85;
transition: opacity 0.5s;
border-radius: 7px;
box-shadow: 0px 0px 20px 6px rgba(0,0,0,0.12),0px 0px 20px 6px rgba(0,0,0,0.12);
}
#ft {
visibility: hidden;
}
#pprl li {
padding: 3px 0 3px 0!important;
}
#pprl {
height: 120px;
padding-bottom:0!important;
}
.block .dxb_bc{
padding-bottom:0!important;
}
#pprl em {
display: none;
}
#pprl a {
font-size: 26px
}
.hm img {
border-radius: 50%;
margin-top: -110px;
box-shadow: 0px 0px 10px 6px rgba(0,0,0,0.12);
padding: 2px;
background: #FFF;
border: 1px solid;
border-color: #F2F2F2 #CDCDCD #CDCDCD #F2F2F2;
}
div#frame1_left {
overflow: visible;
}
.hm .mbn a {
visibility: hidden;
}
#profile .blocktitle span {
display: none;
}
#scrolltop {
display: none!important;
}
#toptb {
display: none!important;
}
.ct2 .sd {
overflow: visible;
}
.xs2 {
visibility: hidden;
}
#pprl:before {
content: close-quote;
width: 235px;
height: 70px;
display: block;
margin-left: -10px;
background-image: url(https://qwq.moe/img/mjj.svg);
}
.ul_list {
display: none;
}
#pprl li:nth-child(1) {
width: 210px;
color: #333;
text-align: center;
margin-top: -105px;
font-size:24px;
text-shadow: 1px 1px 20px rgba(33,33,33,0.3), 1px 1px 5px rgba(33,33,33,0.1);
}
#pprl li:nth-child(3){
margin-top:55px;
}
#pprl li:nth-child(2) {
display: none
}
html{
overflow: hidden;
}
body{
overflow: scroll;
height: 100vh;
overflow-x:hidden;
}
::-webkit-scrollbar {
width: 12px;
background-color: transparent;
}
::-webkit-scrollbar-thumb {
border-radius:12px;
background-color: rgba(0, 0, 0, 0.2);
width
transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:active {
background-color: rgba(0, 0, 0, 0.5);
}
.gol{
display:none;
}
#thread_content li a{
transition:margin 0.3s;
}
#thread_content li a:hover {
margin-left: 3px;
text-decoration: none;
}
.mls img{
border-radius:50%;
}
.hm img{
transition:transform 0.5s;
}
.hm img:hover{
transform:rotate(360deg);
}
.mls img{
transition:transform 0.5s;
}
.mls img:hover{
transform:rotate(-360deg);
}
#thread_content .xl li {
width: 50%;
}
#thread_content .xl {
display: flex;
flex-wrap: wrap;
}
#friend_content .ml {
display: flex;
justify-content: center;
}
#friend_content {
padding: 0;
}
#personalinfo_content p{
display:none;
}
#thread_content .xl{
display:flex;
flex-wrap:wrap;
}
#thread_content .xl li{
width:50%;
}
如何修改回去:再提交一次空白的
flyqie 大佬有话说 : 2020-3-24 21:36:47
本帖最后由 flyqie 于 2020-3-24 21:56 编辑
感谢楼主,这是我的修改过的CSS~
body:before {
content: close-quote;
width: 551px;
right: 10px;
top: 30px;
position: fixed;
background-size: cover;
background-position: center;
height: 200px
}
body {
background-image: url(https://api.ixiaowai.cn/api/api.php)!important;
background-color: #d5fbfe;
background-size: cover;
background-attachment: fixed;
background-position: center
}
#ct {
opacity: .8
}
#hd {
visibility: hidden
}
#ct:hover {
opacity: .9
}
#ct {
opacity: .7;
transition: opacity .5s;
border-radius: 7px;
box-shadow: 0 0 20px 6px rgba(0,0,0,.12),0 0 20px 6px rgba(0,0,0,.12)
}
#ft {
visibility: hidden
}
#pprl li {
padding: 3px 0 3px 0!important
}
#pprl {
height: 400px
}
#pprl em {
display: none
}
#pprl a {
font-size: 26px
}
.hm img {
border-radius: 50%;
margin-top: -110px;
box-shadow: 0 0 10px 6px rgba(0,0,0,.12);
padding: 2px;
background: #fff;
border: 1px solid;
border-color: #f2f2f2 #cdcdcd #cdcdcd #f2f2f2
}
div#frame1_left {
overflow: visible
}
.hm .mbn a {
visibility: hidden
}
#profile .blocktitle span {
display: none
}
#scrolltop {
display: none!important
}
#toptb {
display: none!important
}
.ct2 .sd {
overflow: visible
}
.xs2 {
visibility: hidden
}
#pprl:before {
content: close-quote;
width: 235px;
height: 35px;
display: block;
margin-left: -10px;
background-image: url(https://pic.imgdb.cn/item/5e7a0c1c9dbe9d88c50bd808.png)
}
#thread {
display: none
}
#pprl li {
display: none
}
nico 大佬有话说 : 2020-3-24 14:40:12
本帖最后由 nico 于 2020-3-25 06:24 编辑
很强:lol
great999 大佬有话说 : 2020-3-24 22:24:36
emmm,报错:Uncaught SyntaxError: Unexpected token ‘{‘
夕日 大佬有话说 : 2020-3-24 15:37:50
还是我的空间最强yc010t
Archeb 大佬有话说 : 2020-3-25 15:58:45
七夏浅笑 大佬有话说 : 2020-3-25 15:11
成功了,好棒诶,第一次在论坛上折腾这么久
提供一个完美的透明滚动条方案
html{
overflow: hidden;
}
body{
overflow: scroll;
height: 100vh;
overflow-x:hidden;
}
::-webkit-scrollbar {
width: 12px;
background-color: transparent;
}
::-webkit-scrollbar-thumb {
border-radius:12px;
background-color: rgba(0, 0, 0, 0.2);
width
transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:active {
background-color: rgba(0, 0, 0, 0.5);
}
.gol{
display:none;
}
riwsh 大佬有话说 : 2020-3-24 14:28:47
马克
vagaa 大佬有话说 : 2020-3-24 14:30:00
本帖最后由 vagaa 于 2020-3-24 14:34 编辑
强!!!我弄一下
不会放弃
Function 大佬有话说 : 2020-3-24 14:31:16
哇塞,我要试试哎
h20 大佬有话说 : 2020-3-24 14:35:46
这是哪个番的背景图?
Archeb 大佬有话说 : 2020-3-24 14:36:22
h20 大佬有话说 : 2020-3-24 14:35
这是哪个番的背景图?
动态背景API,我也不知道你看到了哪张
iqdb.org 可以搜
h20 大佬有话说 : 2020-3-24 14:37:27
这个思路不错,我也搞一个
Archeb 大佬有话说 : 2020-3-24 14:39:03
h20 大佬有话说 : 2020-3-24 14:37
这个思路不错,我也搞一个
敲碗等抄
h20 大佬有话说 : 2020-3-24 14:39:52
Archeb 大佬有话说 : 2020-3-24 14:39
敲碗等抄
投食√
bob1987 大佬有话说 : 2020-3-24 14:40:05
牛皮,我觉得我的空间也不错