当我尝试让div类在chrome上设置自己的宽度时,我没有得到想要的结果,它在边缘和w3上工作。
网站:kuzcos.com/reviews
这是我的代码:
我该如何解决这个问题?
感谢。
$('#myModal').on('shown.bs.modal', function (e) {
$('#myInput').val($(e.relatedTarget).attr('val')).focus();
});
html {
background-color: #EFEFEF;
color: #ff3427;
font-family: "Book Antiqua", "Cambria", serif;
font-size: 16px;
}
body {
background-color: #EFEFEF;
color: #ff3427;
font-family: "Book Antiqua", "Cambria", serif;
margin: auto;
}
div#content {
background-color: #FFFFFF;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border: 2px solid #06C;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
color: #ff3427;
font-family: "Book Antiqua", "Cambria", serif;
margin: auto;
margin-top: 5px;
width: 700px;
max-width: 700px;
}
div.reviewContent {
background-color: #FFFFFF;
border: 2px solid #C0C0C0;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
color: #ff3427;
display: block;
font-family: "Book Antiqua", "Cambria", serif;
font-size: 12px;
margin-top: 5px;
margin-bottom: 3px;
margin-left: 3px;
overflow: hidden;
text-align: left;
width: 600px;
max-width: 600px;
}