09 2020 档案
摘要:*{margin: 0;padding: 0;}/*样式重置*/ ul>*{ float: left; } ul>*::after{ clear: both; } li{ list-style: none;/*去除默认标点*/ } a{ color: black; text-decoration:
阅读全文
摘要:.text{ line-height: 40rpx; display: -webkit-box; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; -webkit-line-clamp: 1; }
阅读全文
摘要:原因:元素未加载 解决方法:js代码要写在其操作元素之后 或者 让代码在(JQuery) $(document).ready(function(){ // 开始写 jQuery 代码... });
阅读全文
摘要:大概率路径错误 在路径前多了一个“/” <img src="/images/05.png" alt="">
阅读全文
摘要:表现控制台查找不到设置的样式 可能原因:在选择器之前的某行多了一个点“.” 或者 某行样式少了分号“;”,导致其后全部失效 或者 对类选择忘记加点”.“
阅读全文
摘要:需在父元素设置 position:relative;
阅读全文
摘要:仅在后一种情况下,使用填充或边框可以防止崩溃。同样,任何overflow与默认值(visible)不同的值都将应用于父级,以防止崩溃。因此,两者overflow: auto和overflow: hidden将具有相同的效果。使用时唯一的区别也许hidden是如果父母的身高固定时隐藏内容的意外结果。
阅读全文
摘要:*{margin: 0;padding: 0;}/*样式重置*/ ul{ overflow: hidden; } li{ list-style: none;/*去除默认标点*/ float: left; } a{ color: black; text-decoration: none;/*去除下划线
阅读全文
摘要:#include "stdafx.h" #include<windows.h> int main(int argc, char* argv[]) { int a; int i=0,j=0; scanf("%d",&a);//启动操作 Sleep(3 * 1000);//用于切换到要填写位置的延时 f
阅读全文
摘要:代码中的div要为footer的父框 html{ height: 100%; /*保证页面高度撑满屏幕*/ } body{ height: 100%; } body>div{ /*保证footer是相对于div位置绝对定位*/ position:relative; width:100%; min-h
阅读全文