0
這是JSFiddle示例。我想移動p標籤,使其在頂部而不是在底部顯示。如何將p標籤的位置向上移動而不是位於底部?
<!DOCTYPE html>
<html>
<head>
<style>
div {
display: inline;
}
p {
border-bottom: 6px solid red;
background-color: lightgrey;
padding: 10px;
max-width: 100px;
display: inline-block;
margin-right: 10px;
max-height: 200px;
font-family: "Arial";
}
p:hover {
background-color: #CCCCCC;
cursor: pointer;
}
</style>
</head>
<body>
<div>
<p>This property is a shorthand property for border-bottom-width, border-bottom-style, and border-bottom-color.</p>
<p>This property is a shorthand property for border-bottom-width, border-bottom-style, and border-bottom-color.</p>
<p>This property is a shorthand property for border-bottom-width.</p>
</div>
</body>
</html>
https://jsfiddle.net/om7orw9w/