本帖最后由 Tip 于 2022-2-23 14:42 编辑
效果 https://hostloc.com/space-uid-53947.html
以下代码, ①打开pastebin,Ctrl+A全选RAW Paste Data,复制 ②在一个有回复评论框的帖子,F12 – Console – 粘贴 – 回车执行 ③然后他会弹出一个框,你再把css输入进那个框里面 ④确定,然后到自己空间看效果
https://pastebin.com/YEqpfbbt
把背景图片、id和头像图片替换一下
- html,body {
- width:100%;
- height:100%;
- }
- body {
- display:flex;
- justify-content:center;
- align-items:center;
- background:none!important;
- background-image:url(‘https://i.suut.cn/bg.jpg’)!important;
- background-repeat:no-repeat;
- background-size:cover!important;
- background-position:center center!important;
- }
- #toptb,#ft,#hd,.cl:after,#visitor,#friend,#personalinfo,.blocktitle,#statistic,#profile_content div ul,#profile_content div div p a img,#profile_content div div h2 a {
- display:none!important;
- }
- #ct {
- background-color:rgb(255,255,255,0)!important;
- background:none!important;
- }
- #profile_content div div p a {
- width:120px!important;
- height:120px!important;
- display:block!important;
- position:relative!important;
- }
- #profile_content div div p a::after {
- content:”;
- width:120px!important;
- height:120px!important;
- position:absolute;
- left:0;
- top:0;
- z-index:3;
- background-image:url(‘https://hostloc.com/uc_server/data/avatar/000/05/39/47_avatar_big.jpg’);
- background-size:100% 100%;
- margin-left:45px;
- border-radius:120px;
- border: 2px solid #fff;
- }
-
- #profile_content div div h2{
- margin-top: 8px!important;
- }
- #thread_content ul {
- position:fixed!important;
- top:0!important;
- left:0!important;
- z-index:1!important;
- width:280px!important;
- height:100vh!important;
- background-color:rgb(255,255,255,0.66)!important;
- padding-top:245px!important;
- }
- #frame1_left {
- position:fixed!important;
- top:36px!important;
- left:20px!important;
- z-index:2!important;
- }
- #profile_content div div h2::after {
- content:’Tip’;
- font-size:18px!important;
- cursor:pointer;
- }
- #thread_content ul li {
- box-sizing:border-box;
- width:100%;
- height:45px;
- line-height:45px;
- padding-left:32px;
- padding-right:32px;
- background-color:rgb(0,0,0,0.1)!important;
- margin:0!important;
- margin-bottom:1px!important;
- }
- #thread_content ul li:hover {
- background-color:rgb(0,0,0,0.66)!important;
- color:#fff!important;
- }
- #thread_content ul li a {
- box-sizing:border-box;
- display:block;
- width:208px;
- height:45px;
- line-height:45px;
- white-space:nowrap;
- text-overflow:ellipsis;
- overflow:hidden;
- word-break:break-all;
- }
- #thread_content ul li a:hover {
- color:#fff!important;
- }
复制代码
方法来自 https://hostloc.com/thread-663348-1-1.html
|