今天在用表格的时候出现了个错误。
table { width:100%; height:252px; background:url(img/smbg.jpg) 0 0 repeat-x; margin:10px;}
表格撑破了外层。
原来width:100%时不能用margin,否则会溢出。
在网上搜了一下关于width:100%的解释,还是不太明白,先记住吧!
有网友回复:
在table外面在套一个div来控制margin啊
今天在用表格的时候出现了个错误。
table { width:100%; height:252px; background:url(img/smbg.jpg) 0 0 repeat-x; margin:10px;}
表格撑破了外层。
原来width:100%时不能用margin,否则会溢出。
在网上搜了一下关于width:100%的解释,还是不太明白,先记住吧!
有网友回复:
在table外面在套一个div来控制margin啊

2023-03-07
0万阅读

2023-02-27
0万阅读

2023-02-12
9万阅读

2023-02-11
3万阅读

2023-02-11
8万阅读

2023-01-30
9万阅读

2023-01-18
3万阅读

2023-01-08
4万阅读

2023-01-07
18万阅读

2023-01-07
3万阅读

2023-03-07
0万阅读

2023-02-27
0万阅读

2023-02-12
9万阅读

2023-02-11
3万阅读

2023-02-11
8万阅读

2023-01-30
9万阅读

2023-01-18
3万阅读

2023-01-08
4万阅读

2023-01-07
18万阅读

2023-01-07
3万阅读