css - Why parent width is fixed and centered, but input width: 100% is outside parent range
PHP中文网
PHP中文网 2017-07-03 11:41:30
0
2
1720

Like the title, the details are as shown

This is the input style

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
给我你的怀抱

Added box-sizing: border-box;
box-sizing

習慣沉默

Placeholder,Placeholder,Placeholder,Placeholder

padding + width is already greater than 100%, the reason is that simple

In the box model width = margin (maybe) + border + padding + width

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!