mysql的着重号_HTML5 更好的列表项着重号

CSS

语言:

CSSSCSS

确定

.live {

overflow: hidden;

}

.live > li {

list-style: none;

position: relative;

padding: 0 0 0 2em;

margin: 0 0 0.5em 10px;

-webkit-transition: 0.12s;

transition: 0.12s;

}

.live > li::before {

position: absolute;

content: '\2022';

font-family: Arial;

color: #fff;

top: 0;

left: 0;

text-align: center;

font-size: 2em;

opacity: 0.5;

line-height: 0.75;

-webkit-transition: 0.5s;

transition: 0.5s;

}

.live > li:hover {

color: #fff;

}

.live > li:hover::before {

-webkit-transform: scale(2);

-ms-transform: scale(2);

transform: scale(2);

opacity: 1;

text-shadow: 0 0 4px;

-webkit-transition: 0.1s;

transition: 0.1s;

}

.live.type2 > li::before {

content: '';

width: 10px;

height: 10px;

background: #fff;

border-radius: 3px;

line-height: 0;

top: 0.27em;

left: 5px;

}

.live.type2 > li:hover::before {

-webkit-transform: none;

-ms-transform: none;

transform: none;

border-radius: 5px;

width: 25px;

left: -10px;

background: #ba5353;

}

.live.numbers {

counter-reset: xxx 0;

}

.live.numbers > li::before {

content: counter(xxx, decimal) ".";

counter-increment: xxx 1;

font-family: 'Roboto Condensed';

font-size: 1em;

opacity: 0.5;

line-height: 1.4;

-webkit-transition: 0.5s;

transition: 0.5s;

}

.live.numbers > li:hover:before {

opacity: 1;

left: -10px;

-webkit-transform: none;

-ms-transform: none;

transform: none;

text-shadow: none;

-webkit-transition: 0.12s;

transition: 0.12s;

}

@font-face {

font-family: 'Roboto Condensed';

font-style: normal;

font-weight: 400;

src: local("Roboto Condensed Regular"), local("RobotoCondensed-Regular"), url(http://themes.googleusercontent.com/static/fonts/robotocondensed/v7/Zd2E9abXLFGSr9G3YK2MsFzqCfRpIA3W6ypxnPISCPA.woff) format("woff");

}

html {

height: 100%;

}

body {

height: 100%;

font: 1.5em 'Roboto Condensed', arial;

color: #fff;

text-align: center;

background-image: -webkit-radial-gradient(circle, #3c3b52 0%, #252233 80%);

background-image: radial-gradient(circle, #3c3b52 0%, #252233 80%);

}

h1 {

margin: 0.5em 0 0;

padding: 0;

text-shadow: 0 4px rgba(0, 0, 0, 0.2);

}

* {

-moz-box-sizing: padding-box;

box-sizing: padding-box;

}

ol,

ul {

width: 28%;

display: inline-block;

text-align: left;

vertical-align: top;

background: rgba(0, 0, 0, 0.2);

color: rgba(255, 255, 255, 0.5);

border-radius: 5px;

padding: 1.5em;

margin: 2%;

box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值