You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
879 B
39 lines
879 B
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#div0 {
|
|
width: 250px;
|
|
display: flex;
|
|
border: 1px solid #dcdcdc;
|
|
}
|
|
|
|
#div0 label {
|
|
flex: 1; /* 相当于 flex:1 1 0% */
|
|
background-color: #f5f5f5;
|
|
text-align: center;
|
|
}
|
|
|
|
#div0 input {
|
|
border: none;
|
|
/* 点击输入框时,无边框显示 */
|
|
outline: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="div0">
|
|
<label>姓名</label>
|
|
<input type="text">
|
|
<label>go</label>
|
|
</div>
|
|
</body>
|
|
</html>
|