我有一个自定义的 asp.net 日历。选择日期后,它将运行以下样式:
.calendar-cell
{
-webkit-border-radius: 7px;
border-radius: 7px;
background: rgb(239,239,239); /* Old browsers */
background: -moz-linear-gradient(-45deg, rgba(239,239,239,1) 0%, rgba(235,235,235,1) 50%, rgba(229,229,229,1) 51%, rgba(254,254,254,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(239,239,239,1)), color-stop(50%,rgba(235,235,235,1)), color-stop(51%,rgba(229,229,229,1)), color-stop(100%,rgba(254,254,254,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg, rgba(239,239,239,1) 0%,rgba(235,235,235,1) 50%,rgba(229,229,229,1) 51%,rgba(254,254,254,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg, rgba(239,239,239,1) 0%,rgba(235,235,235,1) 50%,rgba(229,229,229,1) 51%,rgba(254,254,254,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg, rgba(239,239,239,1) 0%,rgba(235,235,235,1) 50%,rgba(229,229,229,1) 51%,rgba(254,254,254,1) 100%); /* IE10+ */ /* W3C */
border-style: solid;
border-width: thin;
border-color: inherit;
background: linear-gradient(135deg, rgba(239,239,239,1) 0%,rgba(235,235,235,1) 50%,rgba(229,229,229,1) 51%,rgba(254,254,254,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#efefef', endColorstr='#fefefe',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
border-collapse:collapse !important;
-webkit-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.08);
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.08);
color: #019fde !important;
}
这增加了一个边框。
这会导致整个日历变大。
我试过没有运气的边框间距和折叠属性。
当边框被添加到选定的日期时,有没有办法让日历不增长?
谢谢