I am trying to place a div with text on top of an image but for some reason it doesn\'t work. My code is:
2条回答 攒了一身酷 (楼主) 2020-12-12 05:36 How about setting the picture as background via the background-image: attribute. You then could make your div clickable with In detail your css would look like this: .image { width:310px; height:310px; background-image:url('pathtoimage'); } 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
How about setting the picture as background via the background-image: attribute. You then could make your div clickable with In detail your css would look like this: .image { width:310px; height:310px; background-image:url('pathtoimage'); } 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
background-image:
In detail your css would look like this: .image { width:310px; height:310px; background-image:url('pathtoimage'); } 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
In detail your css would look like this:
.image { width:310px; height:310px; background-image:url('pathtoimage'); }