這篇文章主要介紹css如何實現二維碼掃碼框,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
實現效果:
代碼如下:
html:
css:
.img-box { background: linear-gradient(#ae0000, #ae0000) left top, linear-gradient(#ae0000, #ae0000) left top, linear-gradient(#ae0000, #ae0000) right top, linear-gradient(#ae0000, #ae0000) right top, linear-gradient(#ae0000, #ae0000) right bottom, linear-gradient(#ae0000, #ae0000) right bottom, linear-gradient(#ae0000, #ae0000) left bottom, linear-gradient(#ae0000, #ae0000) left bottom; background-repeat: no-repeat; background-size: 2px 20px, 20px 2px; height: 116px; width: 116px; } .code { height: 110px; width: 110px; margin-top: 2px; margin-left:2px; border: 1px solid #ae0000; }
以上是“css如何實現二維碼掃碼框”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注創(chuàng)新互聯行業(yè)資訊頻道!