会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
武卡卡的个人博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
39
下一页
2020年11月27日
【java】 向上转型的运用
摘要: 应用 :求面积 1,抽象类 Geometry . public abstract class Geometry { public abstract double getArea(); } 2,矩形 Rect public class Rect extends Geometry{ double a,b
阅读全文
posted @ 2020-11-27 15:52 武卡卡
阅读(154)
评论(0)
推荐(0)
2020年11月12日
【mysql】 解决 auto_increment 字段 Column count doesn't match value count at row 1
摘要: 1, 表结构 man + + + + + + +| id | int(11) | NO | PRI | NULL | auto_increment || name | varchar(20) | YES | | NULL | |+ + + + + + + 2 ,解决方法 insert into ma
阅读全文
posted @ 2020-11-12 19:26 武卡卡
阅读(274)
评论(0)
推荐(0)
2020年11月10日
【css】 text-align 居中导航
摘要: 原理 :利用 inline-block 将 导航 作为 文本 , 被外层具有 text-align 属性的导航盒子包含 。从而实现居中效果 1. html 结构 <header> <div class="nav-wrap"> <nav>hello</nav> </div> </header> 2.
阅读全文
posted @ 2020-11-10 14:53 武卡卡
阅读(149)
评论(0)
推荐(0)
2020年11月7日
css - 使用 figure 和 figcaption 快速实现 图片加文字的垂直方向的布局 ( 不支持ie9以下版本 )
摘要: 一,属性介绍 1. 浏览器支持 注释:Internet Explorer 8 以及更早的版本不支持 <figure> 标签。Internet Explorer 9, Firefox, Opera, Chrome 以及 Safari 支持 <figure> 标签。 2. 定义和用法 <figure>
阅读全文
posted @ 2020-11-07 02:19 武卡卡
阅读(605)
评论(0)
推荐(0)
2020年11月6日
css - 使用 " dl、dt、dd " 描述列表的形式 , 实现 【图片加下方文字】 的快速布局
摘要: 上效果图 : 上代码 : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
阅读全文
posted @ 2020-11-06 00:00 武卡卡
阅读(1052)
评论(0)
推荐(0)
2020年11月4日
css - 编写 兼容到ie7的导航
摘要: 1, index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <t
阅读全文
posted @ 2020-11-04 10:29 武卡卡
阅读(97)
评论(0)
推荐(0)
2020年10月30日
css : object-fit 兼容 ie 的解决方案
摘要: 通过 github 搜索 object-fit ie , 借鉴大佬兼容 ie 的经验。 下载解压到文件夹 , 打开测试目录 , 查看 demo 使用 ie 打开demo , 查看显示效果 : 代码 : <!DOCTYPE HTML> <html> <head> <meta charset="utf-
阅读全文
posted @ 2020-10-30 08:54 武卡卡
阅读(2951)
评论(0)
推荐(1)
2020年10月29日
css - 去掉图片下的白边
摘要: 造成原因: 图片的 display 属性默认是 inline ,而这个属性的 vertical-align 的默认值是baseline。 解决办法1( 建议使用block , 对 ie浏览器 比较友好 ): 将 img 的 display 设置为 block img{ display : block
阅读全文
posted @ 2020-10-29 08:52 武卡卡
阅读(1529)
评论(0)
推荐(0)
2020年10月28日
css - 图片自适应
摘要: img{ max-width: 100%; height: auto; }
阅读全文
posted @ 2020-10-28 23:16 武卡卡
阅读(82)
评论(0)
推荐(0)
2020年10月25日
java - 字符串转数字
摘要: Integer.valueOf("str").intValue(); Integer.valueOf("123").intValue();
阅读全文
posted @ 2020-10-25 11:46 武卡卡
阅读(419)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
39
下一页
公告