下面展示一些 内联代码片
。
// A code block
var foo = 'bar';
// An highlighted block
<!DOCTYPE html>
<html>
<head>
<title>在线词典</title>
<style>
body {
background-image: url("background.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 20px;
box-sizing: border-box;
text-align: center;
}
h1 {
font-size: 48px;
margin-top: 0;
margin-bottom: 20px;
color: #fff;
text-shadow: 2px 2px 4px #000;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
form {
display: flex;
align-items: center;
margin-bottom: 20px;
}
input[type="text"] {
padding: 10px;
border-radius: 20px;
border: none;
box-shadow: 2px 2px 4px #000;
font-size: 24px;
flex-grow: 1;
margin-right: 20px;
margin-top: 20px;
margin-bottom: 30px;
width: 60%;
background-color: rgba(255, 255, 255, 0.8);
}
input[id="search"] {
background-color: #0080ff;
color: #fff;
border: none;
border-radius: 50%;
font-size: 24px;
padding: 15px;
box-shadow: 2px 2px 4px #000;
cursor: pointer;
transition: all 0