物流查询页面表格CSS样式 - 简洁美观
以下是一个基本的物流查询表格CSS样式,您可以根据自己的需要进行修改和调整:
/* 表格样式 */
table {
border-collapse: collapse;
width: 100%;
max-width: 800px;
margin: 0 auto;
}
th, td {
text-align: left;
padding: 10px;
border: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
/* 鼠标悬停样式 */
tr:hover {
background-color: #f5f5f5;
}
/* 标题样式 */
h2 {
text-align: center;
font-size: 24px;
font-weight: bold;
margin-top: 30px;
}
/* 搜索框样式 */
.form-group {
margin-bottom: 20px;
}
.form-control {
width: 100%;
height: 40px;
padding: 5px;
border-radius: 5px;
border: 1px solid #ddd;
outline: none;
font-size: 16px;
transition: border-color 0.3s ease-in-out;
}
.form-control:focus {
border-color: #007bff;
}
/* 按钮样式 */
.btn {
display: inline-block;
font-size: 16px;
font-weight: bold;
text-align: center;
vertical-align: middle;
cursor: pointer;
user-select: none;
border: 1px solid transparent;
border-radius: 5px;
padding: 10px 20px;
color: #fff;
background-color: #007bff;
transition: background-color 0.3s ease-in-out;
}
.btn:hover {
background-color: #0069d9;
}
.btn:active {
background-color: #0062cc;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled, .btn:disabled {
opacity: 0.65;
cursor: not-allowed;
}
/* 错误提示样式 */
.alert {
padding: 10px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 5px;
}
.alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
.alert-danger ul {
margin: 0;
padding: 0 0 0 20px;
}
.alert-danger li {
margin-bottom: 5px;
}
您可以将上述代码复制到您的CSS文件中,并根据需要进行修改。
原文地址: https://www.cveoy.top/t/topic/lDV9 著作权归作者所有。请勿转载和采集!