宁夏网站制作,免费民事法律咨询,海北北京网站建设,wordpress主题带有推荐功能因为在开发App时#xff0c;为了自定义返回栏#xff0c;返回箭头#xff0c;一般都用图片#xff0c;当图片不方便#xff0c;最好用css样式实现。 逻辑#xff1a; 画出一个正方形#xff0c;让它旋转45度#xff0c;只显示你需要的两个边即可 代码
!DOCTYPE ht… 因为在开发App时为了自定义返回栏返回箭头一般都用图片当图片不方便最好用css样式实现。 逻辑 画出一个正方形让它旋转45度只显示你需要的两个边即可 代码
!DOCTYPE html
html langenheadmeta http-equivContent-Type contenttext/html; charsetutf-8 /meta nameviewportcontentwidthdevice-width,minimum-scale1.0,maximum-scale1.0,user-scalableno,initial-scale1meta nameformat-detection contenttelephonenometa nameapple-mobile-web-app-status-bar-style contentwhitemeta nameapple-mobile-web-app-capable contentnotitleCss arrow/title
/head
style typetext/css#triangle-facing-right {display: inline-block;margin: 72px;border-right: 24px solid;border-bottom: 24px solid;width: 120px;height: 120px;transform: rotate(-45deg);}#triangle-facing-left {display: inline-block;margin: 72px;border-left: 24px solid;border-bottom: 24px solid;width: 120px;height: 120px;transform: rotate(45deg);}
/stylebodydiv idtriangle-facing-right/divdiv idtriangle-facing-left/div
/body/html