Home > Web Front-end > HTML Tutorial > 关于HTML语言select标签的size属性的问题_html/css_WEB-ITnose

关于HTML语言select标签的size属性的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:45:48
Original
1509 people have browsed it

html

求助。帮看看下面这段代码为什么谷歌浏览器显示不正常,IE显示正常。。








谷歌浏览器显示如下:

IE浏览器显示如下:

回复讨论(解决方案)

这里就是浏览器的兼容问题了.
不可能所有的浏览器显示出来的.呵呵.
标签的 size 属性 应该是早就被遗弃了.我没有见过有人使用它.

兼容的办法.

select{margin:0;padding:0;border:0;font-size:12px;}
Copy after login
Copy after login

之后再给你的select写个高度.height:21px;
了解了   谢谢

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template