<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<p class="bg-primary text-white">
This is an example paragraph for text selection!
</p>
</div>
</div>
</div>
</body>
</html>
# # #不,沒有用于更改文本選擇顏色的引導類。你必須手動添加CSS。
請看下面的片段。
.bg-primary.text-white::selection {
color: red;
background: yellow;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<p class="bg-primary text-white">
This is an example paragraph for text selection!
</p>
</div>
</div>
</div>
</body>
</html>
上一篇mysql刪除單元格
下一篇gcm json