好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

手机页面图上加文字的问题_html/css_WEB-ITnose

页面的一部分是图片作背景,然后在背景上显示文字,文字是后台可变的,不确定是什么字,但长度确定,现在的问题是,定位不准确,在某些手机上是好的,在有些手机上是靠下的。请问,代码该怎么写。
我是这样写的:










html,body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #22272A;
width:100%;
height:100%;
background:url(images/index.jpg);
background-repeat:no-repeat;
background-size:cover;
}

a {text-decoration:none}
a:hover {text-decoration:none}
-->



查看更多关于手机页面图上加文字的问题_html/css_WEB-ITnose的详细内容...

  阅读:33次