Извините, я снова объявлю код. Я использую div для создания таблицы, а один цвет изменения ячейки меняет цвет. Но при наведении указателя мыши на ячейку фон страницы меняется вместо этой ячейки div. Кроме того, таблица не является шириной браузера на 100%.Разделите таблицу изменения цвета таблицы div вместо просто div
Пожалуйста, помогите мне.
.container {
border-collapse:collapse;
<!--background-color: salmon;-->
width: 100%;
display: table;
}
.row {
display: table-row;
}
.cell1 {
display: table-cell;
padding: 10px;
\t border-bottom: 1px solid black;
}
.cell2 {
display: table-cell;
padding: 10px;
border-bottom: 1px solid black;
\t border-left: 1px solid black;
\t border-right: 1px solid black;
}
.cell3 {
display: table-cell;
padding: 10px;
\t border-bottom: 1px solid black;
}
.cell4 {
display: table-cell;
padding: 10px;
}
.cell5 {
display: table-cell;
padding: 10px;
\t border-top: 1px solid black;
\t border-left: 1px solid black;
\t border-right: 1px solid black;
}
.cell6 {
display: table-cell;
padding: 10px;
}
.container img {
vertical-align: middle;
display: table-cell;
margin-right: 1em;
}
.container span {
vertical-align: middle;
display: table-cell;
line-height: 1.5em;
}
.hvr-shutter-out-horizontal:before {
content: "";
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: #2098d1;
-webkit-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: 50%;
transform-origin: 50%;
-webkit-transition-property: transform;
transition-property: transform;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.hvr-shutter-out-horizontal:hover, .hvr-shutter-out-horizontal:focus, .hvr-shutter-out-horizontal:active {
color: white;
}
.hvr-shutter-out-horizontal:hover:before, .hvr-shutter-out-horizontal:focus:before, .hvr-shutter-out-horizontal:active:before {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
<div class="container">
\t <div class="row">
\t
\t \t <div class="cell1 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/male-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Giám Đốc Điều Hành<br>
\t \t \t \t Call: 0916.3232.19<br>
\t \t \t \t [email protected]<br>
\t \t \t \t <a href="skype:minhkhangjsc?chat">
\t \t \t \t \t <img style="float: left;" src="http://sieuthithietbivanphong.com/image/skype.png" width="70" />
\t \t \t \t </a>
\t \t \t \t <a href="ymsgr:sendim?minhkhangjsc&m=Chào bạn, tôi muốn tư vấn về sản phẩm">
\t \t \t \t \t <img style="float: left; margin: 3px 0px 0px 0px;" alt="Mr. Hải" border="0" src="http://opi.yahoo.com/online?u=minhkhangjsc&m=g&t=2&l=us" />
\t \t \t \t </a>
\t \t \t \t <br>
\t \t \t </span>
\t \t </div>
\t \t
\t \t <div class="cell2 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/male-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Phòng kinh doanh - Mr. Trí<br>
\t \t \t \t Call: 0919.911.955<br>
\t \t \t \t [email protected]<br>
\t \t \t \t <a href="skype:kazihaha?chat">
\t \t \t \t \t <img style="float: left;" src="http://sieuthithietbivanphong.com/image/skype.png" width="70" />
\t \t \t \t </a>
\t \t \t \t <a href="ymsgr:sendim?kazihaha&m=Chào bạn, tôi muốn tư vấn về sản phẩm">
\t \t \t \t \t <img style="float: left; margin: 3px 0px 0px 0px;" alt="Mr. Trí" border="0" src="http://opi.yahoo.com/online?u=kazihaha&m=g&t=2&l=us" />
\t \t \t \t </a>
\t \t \t \t <br>
\t \t \t </span>
\t \t </div>
\t \t
\t \t <div class="cell3 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/female-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Phòng kinh doanh - Mr. Trí<br>
\t \t \t \t Call: 0906.430.277<br>
\t \t \t \t [email protected]<br>
\t \t \t \t <a href="skype:nguyen.trang669?chat">
\t \t \t \t \t <img style="float: left;" src="http://sieuthithietbivanphong.com/image/skype.png" width="70" />
\t \t \t \t </a>
\t \t \t \t <a href="ymsgr:sendim?minhkhangjsc_mayhuygiay&m=Chào bạn, tôi muốn tư vấn về sản phẩm">
\t \t \t \t \t <img style="float: left; margin: 3px 0px 0px 0px;" alt="Ms. Trang" border="0" src="http://opi.yahoo.com/online?u=minhkhangjsc_mayhuygiay&m=g&t=2&l=us" />
\t \t \t \t </a>
\t \t \t \t <br>
\t \t \t </span>
\t \t </div>
\t \t
\t </div>
\t <div class="row">
\t
\t \t <div class="cell4 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/male-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Giám Đốc Điều Hành<br>
\t \t \t \t Phone & Mail<br>
\t \t \t \t Mail<br>
\t \t \t \t Image<br>
\t \t \t </span>
\t \t </div>
\t \t
\t \t <div class="cell5 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/male-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Giám Đốc Điều Hành<br>
\t \t \t \t Phone & Mail<br>
\t \t \t \t Mail<br>
\t \t \t \t Image<br>
\t \t \t </span>
\t \t </div>
\t \t
\t \t <div class="cell6 hvr-shutter-out-horizontal">
\t \t \t <span><img src="http://sieuthithietbivanphong.com/image/male-avatar.jpg" /></span>
\t \t \t <span>
\t \t \t \t Giám Đốc Điều Hành<br>
\t \t \t \t Phone & Mail<br>
\t \t \t \t Mail<br>
\t \t \t \t Image<br>
\t \t \t </span>
\t \t </div>
\t \t
\t </div>
</div>
Нет кода, нет ответа. Пожалуйста, добавьте код (** не ссылки **) в свой вопрос. –
Ссылки на jsfiddle.net должны сопровождаться кодом – Pete
Я изменил его. Так жаль. –