填充在ie和safari不工作 [英] padding is not working in ie and safari
问题描述
我在selet列表中使用了左侧的填充
I used a padding-left in selet list
<select style="padding-left:15px">
<option>male></option>
<option>female></option>
</select>
它在FF中工作正常,但不在safari中,即
its working fine in FF but not in safari and ie
然后
我尝试了一个文本缩进。
Then I have tried a text-indent in it
<select style="width:258px;text-indent:15px;">
<option>male></option>
<option>female></option>
</select>
现在它的工作正常在Safari和ie,但它不工作在FF,
请告诉
Now its working fine in Safari and ie but its not working in FF, Please tell me is there any method which i can used to work it properly in all browser
感谢
推荐答案
如果有人在那里仍然抓着头,我希望这将有所帮助。我最近遇到这些问题,并与safari一起玩,我发现safari不喜欢 padding-left:15px; -left or -right 。此外,发现用 padding:0 0 0 15px替换 padding-left:15px; >似乎工作。
If there's anybody out there who's still scratching their head over this, I hope this will help. I faced these problems recently and playing around with safari i found that safari does not like "padding-left:15px;" or anything else with a "-left or -right" for that matter. Also, found that replacing the "padding-left:15px;" with "padding:0 0 0 15px" seems to work.
这似乎也是旧版本的mozilla的问题。
This seems to a problem with older versions of mozilla too.
我希望这有帮助。
这篇关于填充在ie和safari不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!