Adjust the default length of password text in input through style_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:17
Original
1102 people have browsed it

Original source

When the type in the tag is password and text respectively, the default length and width are inconsistent, which is often required when making a login box Make their length and width consistent. The following method can be controlled through css to make it consistent:

<html> <head></head> <body> 调整前:</br> 用户名:<input type="text" id="tex"></br> 密  码:<input type="password"    id="pass"></br></br> 调整后:</br> 用户名:<input type="text"    style="width:180px;height:20px;" id="tex"></br> 密  码:<input type="password"    style="width:180px;height:20px;" id="pass"> </body> </html> 
Copy after login

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!