css实现的美观的table细线表格代码实例_html/css_WEB-ITnose
css实现的美观的table细线表格代码实例:
默认状态下的表格边框是十分的丑陋的,如果直接应用与客户的网站,那反响是可想而知的。
下面是一段非常美观的细线表格代码实例和大家分享一下。
代码如下:
<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">.table{ width:100%; padding:0px; margin:0px; font-family:Arial, Tahoma, Verdana, Sans-Serif,宋体; border-left:1px solid #ADD8E6; border-collapse:collapse; } /*表头样式。*/ .table th{ font-size:12px; font-weight:600; color:#303030; border-right:1px solid #ADD8E6; border-bottom:1px solid #ADD8E6; border-top:1px solid #ADD8E6; letter-spacing:2px; text-align:left; padding:10px 0px 10px 0px; white-space:nowrap; text-align:center; overflow: hidden; } .table td { border-right:1px solid #ADD8E6; border-bottom:1px solid #ADD8E6; background:#fff; font-size:12px; padding:3px 3px 3px 6px; color:#303030; word-break:break-all; word-wrap:break-word; white-space:normal; } </style></head><body><table class="table"> <thead> <tr> <th>蚂蚁部落一</th> <th>蚂蚁部落二</th> </tr> </thead> <tr> <td>javascript教程</td> <td>jQuery教程</td> </tr> <tr> <td>HTML教程</td> <td>div css教程</td> </tr></table></body></html>
上面的代码实现了细线表格效果,代码非常的简单这里就不介绍了,并且使用也非常的遍历,只要给响应的表格添加class="table"即可实现,当然此效果也不是万能的,需要根据实际要求进行一些设置才行。
原文地址是:http://www.softwhy.com/divcss/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.
