css能不能给div里面加些说明文字? 财富值40

2016-11-06 00:14发布

比如一个图片预览的div,我把它设为了灰色背景,然后我想在背景上加两个字“预览”,可以在css里面添加吗?

<div class="img-preview"></div>
    .img-preview {         width: 148px;         height: 148px;         background-color: #9d9d9d;         margin-bottom: 20px;         overflow: hidden;     }  
付费偷看设置
发送
1条回答

具体样式自己调,,这里用到一个伪类的知识,不过

一周热门 更多>