web手机页面设计注意事项

手机页面与电脑端的区别
首先在头文件中,首页页面一般会有一下几条语句:

10年积累的网站设计、网站建设经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站策划后付款的网站建设流程,更有利州免费网站建设让你可以放心的选择与我们合作。



马贝商城-登录







其次,由于各手机分辨率不同,图片有时候会发生失真,我们会在图片属性中设置。通常我们所使用的单位是rem
max--height
min-height
在设置手机页面时候,由于我们已经了解了弹性盒子的使用方法,但是在使用时会遇到一些情况
如在父元素中添加
{
display :-webkit-flex;
display:flex
}
但是有时候仅此两句就够了,有时候达不到我们想要的效果,解决方法是:或在父元素中补充
{
justify-content:
或align-items
}
或者在子元素中添加比列即{
flex:1;
-webkit-flex:1;

}
最后,手机页面的调试过程,首先是谷歌应用器查看,其次右键检查,跳转到手机页面,可以选择其他默认手机,也可以自己增加新的手机。

我个人觉得手机页面经常会使用到注册啊登录之类的,简单拿一个举例,如图所示:

web手机 页面设计注意事项
用p标签





css如下:
p{
margin-bottom:.8rem;
height: 2rem;
width: 100%;
line-height: 2rem;
background: white;
}
p span{
width:10%;
height: 2rem;
display: inline-block;
border: solid 1px #ccc;
text-align: center;
border-right: none;
float: left;
border-top-left-radius:4px;
border-bottom-left-radius:4px;
}
p input{
width:90%;
display: inline-block;
border: solid 1px #ccc;
height: 2rem;
float: left;
padding-left: .8rem;
border-top-right-radius:4px;
border-bottom-right-radius:4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-webkit-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}


当前名称:web手机页面设计注意事项
标题网址:http://ybzwz.com/article/gocoij.html