在加点分,帮你写代码
同一个div中的图片和文字一起左右居中的话div中的图片设置display:block;margin:auto;然后给div设置text-align:center就好,记得给div设置宽度。想要垂直也居中就不给div设置高度,设置相等padding-top和padding-bottom就行
为何要用表格,div不是更好解决吗
246 浏览 5 回答
351 浏览 4 回答
95 浏览 1 回答
297 浏览 1 回答
116 浏览 2 回答
138 浏览 1 回答
107 浏览 3 回答
291 浏览 6 回答
349 浏览 7 回答
274 浏览 6 回答
95 浏览 9 回答
246 浏览 7 回答
333 浏览 11 回答
315 浏览 7 回答
152 浏览 7 回答
183 浏览 8 回答
213 浏览 11 回答
103 浏览 10 回答
307 浏览 6 回答
286 浏览 11 回答