Heim > Fragen und Antworten > Hauptteil
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document< /title>
<script type="text/javascript" src="jquery/jquery-3.3.1.min.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
// $('ul>li').css('list-style','none')
$('ul li').css('list-style','none')
// $('label+input').css('height','100px')
// $('input+button' ).css('height','100px')
$('label~input').css('background','pink')
})
</script>
<ul>
<li>1</li>
<li>1
<li>2</li>
</li>
<li>1
<div>
<li>3
<li>4
<ul>
<li>5</li>
</ul>
</li>
</li> ;
</div>
</li>
<li>1</li>
<li>1</li>
</ul>
<Aktion bilden ="">
<label for="">姓名</label>
<input type="text"><button>按钮</button><br>
<input type="text"><button>按钮</button><br>
<input type="text"><button>按钮</button><br>
<input type="text"><button>按钮</button><br>
<input type="text"><button>按钮</button>< br>
</form>
</body>
</html>