随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

随笔分类 -  CSS

CSS drop down的一个很好的示例
摘要:CSS drop down的一个很好的示例: http://www.runoob.com/css/css-dropdowns.html 阅读全文
posted @ 2018-03-07 16:05 今夜太冷 阅读(341) 评论(0) 推荐(0) 编辑
colspan width issue
摘要:【问】 I'm having trouble setting fixed widths on columns which usecolspan. It seems that neither IE8, Firefox or Chrome can figure out how to correctly size columns with colspan. Try the following code... 阅读全文
posted @ 2017-08-19 15:48 今夜太冷 阅读(176) 评论(0) 推荐(0) 编辑
CSS中的图片路径问题
摘要:CSS中的背景图片写了相对路径,为什么不显示那? 【解决方法】 CSS中的背景图片路径应该写成相对于当前CSS文件的路径,而不是针对网站根目录的相对路径。 阅读全文
posted @ 2017-08-12 11:32 今夜太冷 阅读(409) 评论(0) 推荐(0) 编辑
手机中如何让图片不把容器撑开?
摘要:If themax-widthproperty is set to 100%, the image will scale down if it has to, but never scale up to be larger than its original size: img{ max-width:100%; height:auto;} 来自: https://... 阅读全文
posted @ 2017-08-03 13:51 今夜太冷 阅读(179) 评论(0) 推荐(0) 编辑
How to center body on a page?
摘要:【提问】 I'm trying to center the body element on my HTML page. Basically, in the CSS I set the body element to bedisplay: inline-block;so that it is only as wide as its contents. That works fine. ... 阅读全文
posted @ 2017-07-28 11:27 今夜太冷 阅读(144) 评论(0) 推荐(0) 编辑
创建自己的字体图标。
摘要:使用了fontawesome以后,也想自己创建一些字体图标。以下是创建的步骤。 下载软件inkscape https://inkscape.org/en/ 打开软件,创建图标。好像用它自带的那些图形来画出来的图是识别的,直接粘贴图片进去,在这个软件里可以保存,但是后面创建字体的时候创建不了,可能是图标太复杂的原因。只能是基本图形组成的矢量图。(待研究) 图标创建好后... 阅读全文
posted @ 2015-07-07 10:32 今夜太冷 阅读(1754) 评论(0) 推荐(0) 编辑
Font Awesome使用简介
摘要:Font awesome是一种用字体来实现图标的CSS插件。 使用方法: 到http://fortawesome.github.io/Font-Awesome/ 下载代码包。 代码包解压到本地后,结构如下 在网页中引用css/font-awesome.css或者css/font-awesome.min.css 比如: 在网页中用如下的方式来显示图标。 ... 阅读全文
posted @ 2015-07-06 17:34 今夜太冷 阅读(708) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示