html - css div怎么和它的伪类after共用一样背景图片?
巴扎黑
巴扎黑 2017-04-17 14:38:09
[HTML讨论组]

怎么用p画出这样的效果

p怎么和它的伪类after共用一样背景图片?能实现吗?

巴扎黑
巴扎黑

全部回复(2)
高洛峰

1、可以画三角形
2、可以这样:把背景色换为你需要的图片,注意色差!
.d1{

position: relative;
border: 1px dashed #999;
background: #fff;
width: 150px;
height: 100px;

}

.d1 span{

display: block;
width: 20px;
height: 20px;
position: absolute;
border-right:1px dashed #999;
border-bottom:1px dashed #999;
transform: rotate(45deg);
bottom: -10px;
left: 50%;
margin-left:-15px;
background: #fff;
z-index: 99;

}
3、直接PS扣图最直接了。

大家讲道理

inherit , inherit
使用继承。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号