小编Bro*_*ard的帖子

:检查CSS不工作

我有一个产品列表小方形的东西,当我单击它(它是一个标签)时,它应该在方框中打勾,它确实如此,但它应该使边框呈绿色并保持它,但它没有我有这个:

.product {
width: 100%;
background: #fff;
border: 4px solid #fff;
border-radius: 4px;
margin-bottom: 20px;
box-shadow: 0 2px 3px #ddd;
text-align:center;
padding-bottom: 15px;
cursor: pointer;

-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-o-transition: all .3s ease;
-ms-transition: all .3s ease;
transition: all .3s ease;

a {
    color: #d6d6d6;
    line-height: 25px;
    border-radius: 100%;
    background: #f2f2f2;
    width: 25px;
    height: 25px;
    display: block;
    position: absolute;
    margin: 10px;

    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -ms-transition: all .3s …
Run Code Online (Sandbox Code Playgroud)

html css less

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

css ×1

html ×1

less ×1