2017年3月2日

CSS 对齐方式

摘要: 居中设置 Center Align - Using margin Setting the width of a block-level element will prevent it from stretching out to the edges of its container. Use mar 阅读全文

posted @ 2017-03-02 15:05 HelloHongfu 阅读(332) 评论(0) 推荐(0) 编辑

CSS Position

摘要: 默认值 : position: static; 相对自己:position: relative; 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 div.relative { 6 position: relative; 7 left: 30px; 8 阅读全文

posted @ 2017-03-02 14:51 HelloHongfu 阅读(152) 评论(0) 推荐(0) 编辑

设置Table边框的CSS

摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 table, td, th { 6 border: 1px solid black; 7 } 8 9 table { 10 border-collapse: collapse; 11 width: 100 阅读全文

posted @ 2017-03-02 14:30 HelloHongfu 阅读(305) 评论(0) 推荐(0) 编辑

导航