html - 为什么有时页面内的 css 不能正常工作,就像这种情况?

标签 html css

正如您在图片和这个 fiddle 中看到的那样 http://jsfiddle.net/W5Yu4/我在 HTML 部分写了 css 样式和类,但它不能正常工作,就像它不识别 css 类一样。

.model-landing-page .explore-wrapper {
width: 930px;
margin-bottom: 20px;
float: left;
border: solid 5px #96172e;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding-bottom: 10px;
}

我在这里做错了什么?

enter image description here

最佳答案

您的样式正在寻找具有类 .explore-wrapper 的元素,该元素包装在具有类 .model-landing-page 的元素中。我在您的 HTML 中没有看到 .model-landing-page,请尝试将此类添加到您的正文中。

关于html - 为什么有时页面内的 css 不能正常工作,就像这种情况?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22057007/

相关文章:

css - HTML 下拉菜单不起作用

javascript - 如何将字段集内容从html传递到html

html - 使用 Bootstrap 的水平行复选框

html - 将按钮移动到屏幕的右侧

html - CSS3 与 Angular Material CSS

html - 图像没有水平居中

javascript - 防止提交空白输入和文本区域

javascript - 如何使用 javascript 获取选定的文本 id 并替换文本并保持标签完整?

css - 使用 ng-repeat 以特定格式显示按钮

php - Codeigniter/CSS PDF 打印输出对齐 PDF 位置