随笔分类 -  html css

表格使用总结
摘要:细线表格: <!DOCTYPE html><html><head> <meta charset="utf-8"> <title>细线表格</title> <style type="text/css"> table{ border-collapse:collapse; } td{height:30px 阅读全文

posted @ 2017-02-06 16:24 杨龙飞 阅读(293) 评论(0) 推荐(0)

网页html结构搭建方法总结
摘要:在div+css布局中,一般都这样来整体构架的: <div id="header"></div><div id="center"></div><div id="footer"></div> 而对于header部分,肯定要显示网站标题,除了显示网站标题外,还可能要显示其他比较重要的对象,比如网站的导航 阅读全文

posted @ 2017-02-06 09:58 杨龙飞 阅读(589) 评论(0) 推荐(0)

css中的inline-block
摘要:div { display: inline-block; *display: inline; *zoom: 1; } Basic Support包含值:none | inline | block | list-item | inline-block table系包含值:table | inline- 阅读全文

posted @ 2017-02-04 13:38 杨龙飞 阅读(166) 评论(0) 推荐(0)

css常用居中
摘要:对一个已知大小的元素上下左右居中(已知大小了,直接margin也就行了): css如下:.parent{height:100px;width:100px;background:grey;position:relative;}.Absolute-Center { height:50px;width:5 阅读全文

posted @ 2017-01-17 11:14 杨龙飞 阅读(156) 评论(0) 推荐(0)

win8效果的横向布局
摘要:有一个月没写过博客了,自己的博客也没有看过,前段时间一直在忙着写代码,公司有一个制漆的产品,与传统纵向布局不一样,要求页面横向布局,类似win8的那种布局效果,最开始,我也没有什么头绪,然后硬着头皮做了,后来,遇到了很多麻烦,我网上查了一些资料,但都不太好,只好自己做了,在做的过程中,突然想到,fl 阅读全文

posted @ 2016-11-27 22:11 杨龙飞 阅读(641) 评论(0) 推荐(0)

dispaly属性,position属性
摘要:position:absolute;绝对定位相对于父元素(父元素设为relative) position:relative;相对定位相对于自己 position:fixed;固定定位相对于浏览器 display:inline;行内元素,不换行,text-align:center不起作用 displa 阅读全文

posted @ 2016-10-28 17:55 杨龙飞 阅读(762) 评论(0) 推荐(0)

导航

Fork me on GitHub