Home >Web Front-end >HTML Tutorial >为什么在css里面设置了table样式后,表格内部的细线不显示了?_html/css_WEB-ITnose

为什么在css里面设置了table样式后,表格内部的细线不显示了?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:27:161410browse

<style type="text/css">.t1{width: 500px;border:1px solid pink;border-collapse: collapse;}</style><div contenteditable="true"		style=" border: 1px solid black">		<table class="t1" >			<caption>				<b>疯狂java讲义系列</b>			</caption>			<tr>				<td>疯狂java讲义</td>				<td>疯狂Android讲义</td>			</tr>			<tr>				<td>疯狂HTML讲义</td>				<td>疯狂AJAX讲义</td>			</tr>		</table>	</div>


表格内部的细线不见了,如果直接在标签内部设置border就行了,why?


回复讨论(解决方案)


            
            
                
                
            
            
                
                
            
        

                疯狂java讲义系列
            
疯狂java讲义 疯狂Android讲义
疯狂HTML讲义 疯狂AJAX讲义


            
            
                
                
            
            
                
                
            
        

                疯狂java讲义系列
            
疯狂java讲义 疯狂Android讲义
疯狂HTML讲义 疯狂AJAX讲义

不能再css里面直接控制吗?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn