Home > front end >  The input box disappear
The input box disappear

Time:09-16

I found in add
* {
padding: 0;
border: 0;
}
After a string of code, input tags input box disappear, if you don't remove this line of code, is there a way to, can let the input input box labels displayed
 

<meta charset="UTF-8">

<style>
* {
padding: 0;
border: 0;
}
Input {/* */
/* padding: 1 px; */
/* border: 1 px; */
*//*}
</style>

<body>

User name: & lt; Input type="text" name="user" value="" width=" 30 "& gt;

Password: & lt; Input type="password" name="PWD" value="" width=" 30 "& gt;




CodePudding user response:

To solve, thank you,

CodePudding user response:

* removed the border around the dom, so need to display the add back with the tag line
Input {
Border: 1 px solid;//1 px border, the default color black
}

CodePudding user response:

Label is not disappeared but you will frame to 0 so looks away

* {
padding: 0;
border: 0;
}
* said all elements
Padding border I don't say

When the input to generate the default margins so you can see your box is set to 0, so you can't see


You can see the input box under the debugger some HTML attributes
  • Related