有个有关css的问题,基佬给解释一下??
firefox吧
全部回复
仅看楼主
level 13
3702080120 楼主
我从文科那里偷来的悬浮签名档
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tieba.baidu.com") {
/* 签名 */ /*Option:自动隐藏签名 Sy_Xial 提供 */
.d_sign_split {
background:none !important;
width:50px !important;
height:auto !important;
}
.d_sign_split::after {
content:"✎签名档";color:#989898;
}
.d_sign_split + img {
position:absolute !important;
z-index:300;max-height:0px !important;
height:auto !important;
width:auto !important;
box-shadow: 0px 0px 4px 0px #333 !important;
transition:0.2s linear all;
-webkit-transition:0.2s ease-in-out all;
}
.d_sign_split:hover + img,.d_sign_split + img:hover {
max-height:200px !important;
transition-delay:0.5s !important;/*触发延时,防止误触发,单位为秒*/
}
.editor_theme_2 #edit_parent {
position:relative !important;z-index:0;
}
.tb-editor-wrapper > .tb_layer_wrapper {
top:0px !important;
}
#thread_theme_7 {
height:160px !important;
}
}
但是有个问题,一般的贴吧样式,都是会调整签名档的,我一旦重新启用某贴吧样式,或者修改,上面的这个自动隐藏签名档的样式就会失效。
必须要停用这个自动隐藏签名档的样式,再启用才会正常。
这是为什么?有什么解决方法吗?
安心水帖,别BB多余的.
2014年06月10日 05点06分 1
吧务
level 15
你可以删掉其他样式调整的部分
2014年06月10日 05点06分 2
样式有几千行代码,还是算了,而且还不仅仅是一个样式。。。。
2014年06月10日 06点06分
level 14
因为后启动的样式优先级高于先启动的,你把这个贴别的样式最后面就行了[狂汗]
2014年06月10日 07点06分 3
重启优先级又上去了
2014年06月10日 07点06分
回复 轮回眼的鸣人 :样式之间不能强制定义优先级吗?
2014年06月10日 08点06分
回复 3702080120 :应该不能,你没事重启它干什么
2014年06月10日 08点06分
回复 轮回眼的鸣人 :要修改,修改后保存,就冲突了。。。。[狂汗]我粘贴到样式后面了。
2014年06月10日 08点06分
level 15
[呼~]这好像是我以前的微博名
2014年06月10日 08点06分 4
啥????你的微博名叫“有个有关css的问题,基佬给解释一下??”??????
2014年06月10日 08点06分
回复 3702080120 :我说sy那个
2014年06月10日 08点06分
回复 鸡情神秘骚年 :意思是这个css是你写的?
2014年06月10日 08点06分
回复 3702080120 :[滑稽]你问猪猪
2014年06月10日 08点06分
level 14
.j_user_sign{opacity:0;max-height:10px;transition:1.5s!important;}
.j_user_sign:hover{opacity:1;max-height:200px;transition:2.5s;}
我用的这个,你那个太复杂了
2014年06月10日 08点06分 5
但是这个平时还是会占用页面空间啊,那个就不会。
2014年06月10日 08点06分
回复 3702080120 :这个会挡住下面的回复
2014年06月10日 08点06分
回复 轮回眼的鸣人 :鼠标移开就隐藏了,其实很方便的。
2014年06月10日 08点06分
level 13
3702080120 楼主
@轮回眼的鸣人安心水帖,别BB多余的.
2014年06月10日 08点06分 6
我知道啊,我这5,6个
2014年06月10日 08点06分
回复 轮回眼的鸣人 :这样比较节省空间。我没有看懂你的意思。。。。
2014年06月10日 08点06分
level 12
不要单独建一个样式
把1楼的写到你其他的贴吧样式里面
2014年06月10日 08点06分 7
嗯,已经酱紫做了[太开心]
2014年06月10日 08点06分
1