求问一个关于按钮的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:58:55
Original
975 people have browsed it


如图,因为按钮中文字的长度不同,按钮的样式是一样的,为什么按钮李有两行文字的时候会向下移动一点。求各位帮个忙,谢谢了


回复讨论(解决方案)

为什么没人?

有没有大神给个解决方法呀,急呀,谢谢

你加个  button {vertical-align: top} 试试

你加个  button {vertical-align: top} 试试


试了,没用

你加个  button {vertical-align: top} 试试


我发现不给按钮设置高度的话就在一行了

你加个  button {vertical-align: top} 试试


我找到一种方法了,把button弄成块状标签然后设置浮动,就会在一条水平线上了 ,谢谢你了
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!