B站标签的这个CSS效果是怎么做的

html-css020

B站标签的这个CSS效果是怎么做的,第1张

background-image: url(//i0.hdslb.com/bfs/archive/[email protected])

}

.bili-header-m .head-banner .head-content .head-logo {

position: absolute

width: 220px

height: 105px

left: 24px

top: 55px

background: transparent no-repeat 0

z-index: 10

}

.bili-header-m a, .bili-header-m a:hover, .bili-header-m ins {

text-decoration: none

}

.bili-header-m a {

-webkit-transition: color .2s

-o-transition: color .2s

transition: color .2s

}

a, a:hover, ins {

text-decoration: none

}

a {

transition: color .2s

}

user agent stylesheet

a:-webkit-any-link {

color: -webkit-link

text-decoration: underline

cursor: auto

}

Inherited from

div.bili-header-m

.bili-header-m {

font: 12px Helvetica Neue,Helvetica,Arial,Microsoft Yahei,Hiragino Sans GB,Heiti SC,WenQuanYi Micro Hei,sans-serif

position: relative

z-index: 10000

background: #fff

}

Inherited from

body

body, button, input, select, textarea {

font: 12px Helvetica Neue,Helvetica,Arial,Microsoft Yahei,Hiragino Sans GB,Heiti SC,WenQuanYi Micro Hei,sans-serif

}

Inherited from

html

html {

background: #fff

color: #000

}

????是不是这个

css只是用来设置布局呀··如果用来控制输出文章的数目,要用程序来定呀·你可以%D%A补充:%D%A你可以,用css做好要显示的大小,用程序控制循环输出就可以了%D%A追问:%D%Asql="select top 5 * from kencorn_news where sortid=41 order by id desc" 这个程序的意思是调用5篇出来对吧%D%A回答:%D%A“top 5”是什么?如果“top 5”是你的字段名,应该是连起来的 例如“top_5”如果不是字段名,那么就是错的。如果调用5篇,直接就是select "字段名" 或者 “*” from kencorm_news where sortid = 41 order by id desc limit 5 %D%A

要是有个人二十六个英文字母都认不全,问你怎么跟米国人口语聊天,你会不会觉得提问的人脑袋不够用?你这个情况同理的..

买本css的书学学吧,这个不是三言两语能说清楚的,自己学会了就好弄了。不要问这种弱弱的问题..