在html选择标记上缩进文本

时间:2015-06-03 18:49:54

标签: css css3 cross-browser

我有一个选择标签,我试图给出一些风格。

public class MidFragment extends Fragment {

setImage(int position){
//set Image here this method will be called the user select a list in left fragment
}
}

然后我有了这个

<select class="points-selection"
        ng-options="line as line.pick for line in slip.lines">
</select>

我将 .points-selection { background-color: get-color(nieve); border: 0; border-radius: get-space(xxx-small); color: get-color(night); cursor: pointer; margin-top: get-space(xxx-small) + 1.5; padding: get-space(xxx-small); text-indent: 32.5%; width: 100%; } 道具设定为32.5%。

在Chrome中正在执行此操作

enter image description here

这正是我所需要的。

但我在Firefox上有这个

enter image description here

显然文本不是以Firefox为中心,这是我目前的问题。

那我该怎么做才能解决它?

1 个答案:

答案 0 :(得分:1)

尝试为每个浏览器规范化css

*{
     margin:0px;
     padding:0px;
 }

或转到此链接Normalize.css in GitHub

相关问题