Image css响应的img firefox
我创建了一个lightbox,我想让它只响应css 它在firefox中的每一个浏览器上都能很好地工作(就像几乎每一次一样) 我真的不知道用css为firefox制作响应性img的方法是什么 下面是我的css的一个小提琴示例:Image css响应的img firefox,image,firefox,responsive-design,Image,Firefox,Responsive Design,我创建了一个lightbox,我想让它只响应css 它在firefox中的每一个浏览器上都能很好地工作(就像几乎每一次一样) 我真的不知道用css为firefox制作响应性img的方法是什么 下面是我的css的一个小提琴示例: 我就是这样得到的: .light-box-container { position: fixed; display: table; vertical-align: baseline; width: 100%; height: 100
我就是这样得到的:
.light-box-container {
position: fixed;
display: table;
vertical-align: baseline;
width: 100%;
height: 100%;
top: 0;
left: 0;
margin: 0 auto;
padding: 0 auto;
background: rgba(0,0,0,0.8);
cursor: pointer;
}
.light-box-inner {
position: relative;
display: table-cell;
vertical-align: middle;
margin: 0 auto;
padding: 0 auto;
}
.light-box-image {
position: relative;
text-align: center;
}
.light-box-image img {
position: relative;
width: auto;
max-width: 80%;
height: auto;
max-height: 90%;
margin: 0 auto;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
-moz-box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
}
.light-box-container {
position: fixed;
vertical-align: baseline;
width: 100%;
height: 100%;
top: 0;
left: 0;
margin: 0 auto;
padding: 0 auto;
background: rgba(0,0,0,0.8);
cursor: pointer;
}
.light-box-image {
position: relative;
height: 100%;
margin: 0 auto;
padding: 0 auto;
text-align: center;
}
.light-box-image img {
max-height: 90%;
max-width: 80%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
-moz-box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
box-shadow: 0px 0px 40px rgba(0,0,0,0.8);
}