![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
Jiabing Yu
公主号【摆烂工程师】
展开
-
关于css的在H5移动端适配
/适配iphoneX@media only screen and (width:375px) and (height:812px) { 在这写css代码}适配不大于一个宽度或者高度的方式@media only screen and (max-width:375px) and (max-height:812px) {}适配不小于一个宽度或者高度的方式@media only screen...原创 2019-04-18 16:33:12 · 951 阅读 · 0 评论 -
关于H5判断安卓手机还是苹果手机的方法
function IsIosAndroid() { if((/android/gi).test(navigator.appVersion)) { return 1; } else if((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) ||(nav...原创 2019-04-18 16:42:26 · 3276 阅读 · 0 评论 -
关于响应式布局中的max-width
css中的width和max-width的区别,在我们正常的页面布局中,经常用到width的,不过如果想在各种尺寸的屏幕适配一个表单或者一张图,我们则用max-width可以解决。当width的数值比max-width的数值大时,max-width的数值覆盖掉width的数值。反之,width的数值覆盖max-width的数值。因此可以到达想要的效果。...原创 2019-05-29 23:55:41 · 768 阅读 · 0 评论