<!DOCTYPE html> | |
<style> | |
.min { | |
min-width: -ie-min-content; | |
min-width: -moz-min-content; | |
min-width: -webkit-min-content; | |
min-width: min-content; | |
} | |
.max { | |
min-width: -ie-max-content; | |
min-width: -moz-max-content; | |
min-width: -webkit-max-content; | |
min-width: max-content; | |
} | |
input { | |
width: 10px; | |
background-color: pink; | |
margin: 0; | |
} | |
</style> | |
<input class="min"> | |
<input class="max"> | |
<br> | |
<input class="min" type="file"> | |
<input class="max" type="file"> |