html+css+table一些比較漂亮的表格
各種不同樣式的css+table
效果圖
具體的html檔案
css樣式:<table id="hor-minimalist-a" summary="Employee Pay Sheet"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Salary</th> <th scope="col">Bonus</th> <th scope="col">Supervisor</th> </tr> </thead> <tbody> <tr> <td>Stephen C. Cox</td> <td>$300</td> <td>$50</td> <td>Bob</td> </tr> <tr> <td>Josephin Tan</td> <td>$150</td> <td>-</td> <td>Annie</td> </tr> <tr> <td>Joyce Ming</td> <td>$200</td> <td>$35</td> <td>Andy</td> </tr> <tr> <td>James A. Pentel</td> <td>$175</td> <td>$25</td> <td>Annie</td> </tr> </tbody> </table> <table id="hor-minimalist-b" summary="Employee Pay Sheet"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Salary</th> <th scope="col">Bonus</th> <th scope="col">Supervisor</th> </tr> </thead> <tbody> <tr> <td>Stephen C. Cox</td> <td>$300</td> <td>$50</td> <td>Bob</td> </tr> <tr> <td>Josephin Tan</td> <td>$150</td> <td>-</td> <td>Annie</td> </tr> <tr> <td>Joyce Ming</td> <td>$200</td> <td>$35</td> <td>Andy</td> </tr> <tr> <td>James A. Pentel</td> <td>$175</td> <td>$25</td> <td>Annie</td> </tr> </tbody> </table> <table id="ver-minimalist" summary="Most Favorite Movies"> <thead> <tr> <th scope="col">Comedy</th> <th scope="col">Adventure</th> <th scope="col">Action</th> <th scope="col">Children</th> </tr> </thead> <tbody> <tr> <td>Scary Movie</td> <td>Indiana Jones</td> <td>The Punisher</td> <td>Wall-E</td> </tr> <tr> <td>Epic Movie</td> <td>Star Wars</td> <td>Bad Boys</td> <td>Madagascar</td> </tr> <tr> <td>Spartan</td> <td>LOTR</td> <td>Die Hard</td> <td>Finding Nemo</td> </tr> <tr> <td>Dr. Dolittle</td> <td>The Mummy</td> <td>300</td> <td>A Bug's Life</td> </tr> </tbody> </table> <table id="box-table-a" summary="Employee Pay Sheet"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Salary</th> <th scope="col">Bonus</th> <th scope="col">Supervisor</th> </tr> </thead> <tbody> <tr> <td>Stephen C. Cox</td> <td>$300</td> <td>$50</td> <td>Bob</td> </tr> <tr> <td>Josephin Tan</td> <td>$150</td> <td>-</td> <td>Annie</td> </tr> <tr> <td>Joyce Ming</td> <td>$200</td> <td>$35</td> <td>Andy</td> </tr> <tr> <td>James A. Pentel</td> <td>$175</td> <td>$25</td> <td>Annie</td> </tr> </tbody> </table> <table id="box-table-b" summary="Most Favorit Movies"> <thead> <tr> <th scope="col">Comedy</th> <th scope="col">Adventure</th> <th scope="col">Action</th> <th scope="col">Children</th> </tr> </thead> <tbody> <tr> <td>Scary Movie</td> <td>Indiana Jones</td> <td>The Punisher</td> <td>Wall-E</td> </tr> <tr> <td>Epic Movie</td> <td>Star Wars</td> <td>Bad Boys</td> <td>Madagascar</td> </tr> <tr> <td>Spartan</td> <td>LOTR</td> <td>Die Hard</td> <td>Finding Nemo</td> </tr> <tr> <td>Dr. Dolittle</td> <td>The Mummy</td> <td>300</td> <td>A Bug's Life</td> </tr> </tbody> </table> <table id="hor-zebra" summary="Employee Pay Sheet"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Salary</th> <th scope="col">Bonus</th> <th scope="col">Supervisor</th> </tr> </thead> <tbody> <tr class="odd"> <td>Stephen C. Cox</td> <td>$300</td> <td>$50</td> <td>Bob</td> </tr> <tr> <td>Josephin Tan</td> <td>$150</td> <td>-</td> <td>Annie</td> </tr> <tr class="odd"> <td>Joyce Ming</td> <td>$200</td> <td>$35</td> <td>Andy</td> </tr> <tr> <td>James A. Pentel</td> <td>$175</td> <td>$25</td> <td>Annie</td> </tr> </tbody> </table> <table id="ver-zebra" summary="Most Favorite Movies"> <colgroup> <col class="vzebra-odd" /> <col class="vzebra-even" /> <col class="vzebra-odd" /> <col class="vzebra-even" /> </colgroup> <thead> <tr> <th scope="col" id="vzebra-comedy">Comedy</th> <th scope="col" id="vzebra-adventure">Adventure</th> <th scope="col" id="vzebra-action">Action</th> <th scope="col" id="vzebra-children">Children</th> </tr> </thead> <tbody> <tr> <td>Scary Movie</td> <td>Indiana Jones</td> <td>The Punisher</td> <td>Wall-E</td> </tr> <tr> <td>Epic Movie</td> <td>Star Wars</td> <td>Bad Boys</td> <td>Madagascar</td> </tr> <tr> <td>Spartan</td> <td>LOTR</td> <td>Die Hard</td> <td>Finding Nemo</td> </tr> <tr> <td>Dr. Dolittle</td> <td>The Mummy</td> <td>300</td> <td>A Bug's Life</td> </tr> </tbody> </table> <table id="one-column-emphasis" summary="2007 Major IT Companies' Profit"> <colgroup> <col class="oce-first" /> </colgroup> <thead> <tr> <th scope="col">Company</th> <th scope="col">Q1</th> <th scope="col">Q2</th> <th scope="col">Q3</th> <th scope="col">Q4</th> </tr> </thead> <tbody> <tr> <td>Microsoft</td> <td>20.3</td> <td>30.5</td> <td>23.5</td> <td>40.3</td> </tr> <tr> <td>Google</td> <td>50.2</td> <td>40.63</td> <td>45.23</td> <td>39.3</td> </tr> <tr> <td>Apple</td> <td>25.4</td> <td>30.2</td> <td>33.3</td> <td>36.7</td> </tr> <tr> <td>IBM</td> <td>20.4</td> <td>15.6</td> <td>22.3</td> <td>29.3</td> </tr> </tbody> </table> <table id="newspaper-a" summary="2007 Major IT Companies' Profit"> <thead> <tr> <th scope="col">Company</th> <th scope="col">Q1</th> <th scope="col">Q2</th> <th scope="col">Q3</th> <th scope="col">Q4</th> </tr> </thead> <tbody> <tr> <td>Microsoft</td> <td>20.3</td> <td>30.5</td> <td>23.5</td> <td>40.3</td> </tr> <tr> <td>Google</td> <td>50.2</td> <td>40.63</td> <td>45.23</td> <td>39.3</td> </tr> <tr> <td>Apple</td> <td>25.4</td> <td>30.2</td> <td>33.3</td> <td>36.7</td> </tr> <tr> <td>IBM</td> <td>20.4</td> <td>15.6</td> <td>22.3</td> <td>29.3</td> </tr> </tbody> </table> <table id="newspaper-b" summary="2007 Major IT Companies' Profit"> <thead> <tr> <th scope="col">Company</th> <th scope="col">Q1</th> <th scope="col">Q2</th> <th scope="col">Q3</th> <th scope="col">Q4</th> </tr> </thead> <tfoot> <tr> <td colspan="5"><em>The above data were fictional and made up, please do not sue me</em></td> </tr> </tfoot> <tbody> <tr> <td>Microsoft</td> <td>20.3</td> <td>30.5</td> <td>23.5</td> <td>40.3</td> </tr> <tr> <td>Google</td> <td>50.2</td> <td>40.63</td> <td>45.23</td> <td>39.3</td> </tr> <tr> <td>Apple</td> <td>25.4</td> <td>30.2</td> <td>33.3</td> <td>36.7</td> </tr> <tr> <td>IBM</td> <td>20.4</td> <td>15.6</td> <td>22.3</td> <td>29.3</td> </tr> </tbody> </table> <table id="newspaper-c" summary="Personal Movie Rating"> <thead> <tr> <th scope="col">Favorite</th> <th scope="col">Great</th> <th scope="col">Nice</th> <th scope="col">Bad</th> </tr> </thead> <tbody> <tr> <td>Passion of the Christ</td> <td>Bourne Ultimatum</td> <td>Shoot 'Em Up</td> <td>Ali</td> </tr> <tr> <td>The Big Fish</td> <td>The Mummy</td> <td>Apocalypto</td> <td>Monster</td> </tr> <tr> <td>Shawshank Redemption</td> <td>Cold Mountain</td> <td>Indiana Jones</td> <td>Dead or Alive</td> </tr> <tr> <td>Greatest Story Ever Told</td> <td>I Am Legend</td> <td>Star Wars</td> <td>Saw 3</td> </tr> </tbody> </table> <table id="rounded-corner" summary="2007 Major IT Companies' Profit"> <thead> <tr> <th scope="col" class="rounded-company">Company</th> <th scope="col" class="rounded-q1">Q1</th> <th scope="col" class="rounded-q2">Q2</th> <th scope="col" class="rounded-q3">Q3</th> <th scope="col" class="rounded-q4">Q4</th> </tr> </thead> <tfoot> <tr> <td colspan="4" class="rounded-foot-left"><em>The above data were fictional and made up, please do not sue me</em></td> <td class="rounded-foot-right"> </td> </tr> </tfoot> <tbody> <tr> <td>Microsoft</td> <td>20.3</td> <td>30.5</td> <td>23.5</td> <td>40.3</td> </tr> <tr> <td>Google</td> <td>50.2</td> <td>40.63</td> <td>45.23</td> <td>39.3</td> </tr> <tr> <td>Apple</td> <td>25.4</td> <td>30.2</td> <td>33.3</td> <td>36.7</td> </tr> <tr> <td>IBM</td> <td>20.4</td> <td>15.6</td> <td>22.3</td> <td>29.3</td> </tr> </tbody> </table> <table id="background-image" summary="Meeting Results"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Division</th> <th scope="col">Suggestions</th> </tr> </thead> <tfoot> <tr> <td colspan="4">IE 6 users won't see the transparent background if the hack is not applied</td> </tr> </tfoot> <tbody> <tr> <td>Stephen C. Cox</td> <td>Marketing</td> <td>Make discount offers</td> </tr> <tr> <td>Josephin Tan</td> <td>Advertising</td> <td>Give bonuses</td> </tr> <tr> <td>Joyce Ming</td> <td>Marketing</td> <td>New designs</td> </tr> <tr> <td>James A. Pentel</td> <td>Marketing</td> <td>Better Packaging</td> </tr> </tbody> </table> <table id="gradient-style" summary="Meeting Results"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Division</th> <th scope="col">Suggestions</th> <th scope="col">Rating</th> </tr> </thead> <tfoot> <tr> <td colspan="4">Give background color to the table cells to achieve seamless transition</td> </tr> </tfoot> <tbody> <tr> <td>Stephen C. Cox</td> <td>Marketing</td> <td>Make discount offers</td> <td>3/10</td> </tr> <tr> <td>Josephin Tan</td> <td>Advertising</td> <td>Give bonuses</td> <td>5/10</td> </tr> <tr> <td>Joyce Ming</td> <td>Marketing</td> <td>New designs</td> <td>8/10</td> </tr> <tr> <td>James A. Pentel</td> <td>Marketing</td> <td>Better Packaging</td> <td>8/10</td> </tr> </tbody> </table> <table id="pattern-style-a" summary="Meeting Results"> <thead> <tr> <th scope="col">Employee</th> <th scope="col">Salary</th> <th scope="col">Bonus</th> <th scope="col">Supervisor</th> </tr> </thead> <tbody> <tr> <td>Stephen C. Cox</td> <td>$300</td> <td>$50</td> <td>Bob</td> </tr> <tr> <td>Josephin Tan</td> <td>$150</td> <td>-</td> <td>Annie</td> </tr> <tr> <td>Joyce Ming</td> <td>$200</td> <td>$35</td> <td>Andy</td> </tr> <tr> <td>James A. Pentel</td> <td>$175</td> <td>$25</td> <td>Annie</td> </tr> </tbody> </table> <table id="pattern-style-b" summary="Meeting Results"> <thead> <tr> <th scope="col">Nation</th> <th scope="col">Capital</th> <th scope="col">Language</th> <th scope="col">Unique</th> </tr> </thead> <tbody> <tr> <td>Japan</td> <td>Tokyo</td> <td>Japanese</td> <td>Karate</td> </tr> <tr> <td>South Korea</td> <td>Seoul</td> <td>Korean</td> <td>Ginseng</td> </tr> <tr> <td>China</td> <td>Beijing</td> <td>Mandarin</td> <td>Kung-Fu</td> </tr> <tr> <td>Indonesia</td> <td>Jakarta</td> <td>Indonesian</td> <td>Batik</td> </tr> </tbody> </table>
body { line-height: 1.6em; } #hor-minimalist-a { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; background: #fff; margin: 45px; width: 480px; border-collapse: collapse; text-align: left; } #hor-minimalist-a th { font-size: 14px; font-weight: normal; color: #039; padding: 10px 8px; border-bottom: 2px solid #6678b1; } #hor-minimalist-a td { color: #669; padding: 9px 8px 0px 8px; } #hor-minimalist-a tbody tr:hover td { color: #009; } #hor-minimalist-b { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; background: #fff; margin: 45px; width: 480px; border-collapse: collapse; text-align: left; } #hor-minimalist-b th { font-size: 14px; font-weight: normal; color: #039; padding: 10px 8px; border-bottom: 2px solid #6678b1; } #hor-minimalist-b td { border-bottom: 1px solid #ccc; color: #669; padding: 6px 8px; } #hor-minimalist-b tbody tr:hover td { color: #009; } #ver-minimalist { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #ver-minimalist th { padding: 8px 2px; font-weight: normal; font-size: 14px; border-bottom: 2px solid #6678b1; border-right: 30px solid #fff; border-left: 30px solid #fff; color: #039; } #ver-minimalist td { padding: 12px 2px 0px 2px; border-right: 30px solid #fff; border-left: 30px solid #fff; color: #669; } #box-table-a { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #box-table-a th { font-size: 13px; font-weight: normal; padding: 8px; background: #b9c9fe; border-top: 4px solid #aabcfe; border-bottom: 1px solid #fff; color: #039; } #box-table-a td { padding: 8px; background: #e8edff; border-bottom: 1px solid #fff; color: #669; border-top: 1px solid transparent; } #box-table-a tr:hover td { background: #d0dafd; color: #339; } #box-table-b { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: center; border-collapse: collapse; border-top: 7px solid #9baff1; border-bottom: 7px solid #9baff1; } #box-table-b th { font-size: 13px; font-weight: normal; padding: 8px; background: #e8edff; border-right: 1px solid #9baff1; border-left: 1px solid #9baff1; color: #039; } #box-table-b td { padding: 8px; background: #e8edff; border-right: 1px solid #aabcfe; border-left: 1px solid #aabcfe; color: #669; } #hor-zebra { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #hor-zebra th { font-size: 14px; font-weight: normal; padding: 10px 8px; color: #039; } #hor-zebra td { padding: 8px; color: #669; } #hor-zebra .odd { background: #e8edff; } #ver-zebra { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #ver-zebra th { font-size: 14px; font-weight: normal; padding: 12px 15px; border-right: 1px solid #fff; border-left: 1px solid #fff; color: #039; } #ver-zebra td { padding: 8px 15px; border-right: 1px solid #fff; border-left: 1px solid #fff; color: #669; } .vzebra-odd { background: #eff2ff; } .vzebra-even { background: #e8edff; } #ver-zebra #vzebra-adventure, #ver-zebra #vzebra-children { background: #d0dafd; border-bottom: 1px solid #c8d4fd; } #ver-zebra #vzebra-comedy, #ver-zebra #vzebra-action { background: #dce4ff; border-bottom: 1px solid #d6dfff; } #one-column-emphasis { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #one-column-emphasis th { font-size: 14px; font-weight: normal; padding: 12px 15px; color: #039; } #one-column-emphasis td { padding: 10px 15px; color: #669; border-top: 1px solid #e8edff; } .oce-first { background: #d0dafd; border-right: 10px solid transparent; border-left: 10px solid transparent; } #one-column-emphasis tr:hover td { color: #339; background: #eff2ff; } #newspaper-a { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; border: 1px solid #69c; } #newspaper-a th { padding: 12px 17px 12px 17px; font-weight: normal; font-size: 14px; color: #039; border-bottom: 1px dashed #69c; } #newspaper-a td { padding: 7px 17px 7px 17px; color: #669; } #newspaper-a tbody tr:hover td { color: #339; background: #d0dafd; } #newspaper-b { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; border: 1px solid #69c; } #newspaper-b th { padding: 15px 10px 10px 10px; font-weight: normal; font-size: 14px; color: #039; } #newspaper-b tbody { background: #e8edff; } #newspaper-b td { padding: 10px; color: #669; border-top: 1px dashed #fff; } #newspaper-b tbody tr:hover td { color: #339; background: #d0dafd; } #newspaper-c { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; border: 1px solid #6cf; } #newspaper-c th { padding: 20px; font-weight: normal; font-size: 13px; color: #039; text-transform: uppercase; border-right: 1px solid #0865c2; border-top: 1px solid #0865c2; border-left: 1px solid #0865c2; border-bottom: 1px solid #fff; } #newspaper-c td { padding: 10px 20px; color: #669; border-right: 1px dashed #6cf; } #rounded-corner { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #rounded-corner thead th.rounded-company { background: #b9c9fe url('table-images/left.png') left -1px no-repeat; } #rounded-corner thead th.rounded-q4 { background: #b9c9fe url('table-images/right.png') right -1px no-repeat; } #rounded-corner th { padding: 8px; font-weight: normal; font-size: 13px; color: #039; background: #b9c9fe; } #rounded-corner td { padding: 8px; background: #e8edff; border-top: 1px solid #fff; color: #669; } #rounded-corner tfoot td.rounded-foot-left { background: #e8edff url('table-images/botleft.png') left bottom no-repeat; } #rounded-corner tfoot td.rounded-foot-right { background: #e8edff url('table-images/botright.png') right bottom no-repeat; } #rounded-corner tbody tr:hover td { background: #d0dafd; } #background-image { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; background: url('table-images/blurry.jpg') 330px 59px no-repeat; } #background-image th { padding: 12px; font-weight: normal; font-size: 14px; color: #339; } #background-image td { padding: 9px 12px; color: #669; border-top: 1px solid #fff; } #background-image tfoot td { font-size: 11px; } #background-image tbody td { background: url('table-images/back.png'); } * html #background-image tbody td { /* ---------------------------- PUT THIS ON IE6 ONLY STYLE AS THE RULE INVALIDATES YOUR STYLESHEET ---------------------------- */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='table-images/back.png',sizingMethod='crop'); background: none; } #background-image tbody tr:hover td { color: #339; background: none; } #gradient-style { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; } #gradient-style th { font-size: 13px; font-weight: normal; padding: 8px; background: #b9c9fe url('table-images/gradhead.png') repeat-x; border-top: 2px solid #d3ddff; border-bottom: 1px solid #fff; color: #039; } #gradient-style td { padding: 8px; border-bottom: 1px solid #fff; color: #669; border-top: 1px solid #fff; background: #e8edff url('table-images/gradback.png') repeat-x; } #gradient-style tfoot tr td { background: #e8edff; font-size: 12px; color: #99c; } #gradient-style tbody tr:hover td { background: #d0dafd url('table-images/gradhover.png') repeat-x; color: #339; } #pattern-style-a { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; background: url('table-images/pattern.png'); } #pattern-style-a thead tr { background: url('table-images/pattern-head.png'); } #pattern-style-a th { font-size: 13px; font-weight: normal; padding: 8px; border-bottom: 1px solid #fff; color: #039; } #pattern-style-a td { padding: 8px; border-bottom: 1px solid #fff; color: #669; border-top: 1px solid transparent; } #pattern-style-a tbody tr:hover td { color: #339; background: #fff; } #pattern-style-b { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size: 12px; margin: 45px; width: 480px; text-align: left; border-collapse: collapse; background: url('table-images/patternb.png'); } #pattern-style-b thead tr { background: url('table-images/patternb-head.png'); } #pattern-style-b th { font-size: 13px; font-weight: normal; padding: 8px; border-bottom: 1px solid #fff; color: #039; } #pattern-style-b td { padding: 8px; border-bottom: 1px solid #fff; color: #669; border-top: 1px solid transparent; } #pattern-style-b tbody tr:hover td { color: #339; background: #cdcdee; }
相關推薦
html+css+table一些比較漂亮的表格
各種不同樣式的css+table 效果圖 具體的html檔案 <table id="hor-minimalist-a" summary="Employee Pay Sheet"> <thead> <tr>
HTML+CSS第三課:表格標籤的使用
知識點:表格標籤、表格標籤的屬性、單元格的跨行與跨列、單元格屬性 1、表格的基本結構 表格是由指定的數目的行和列組成的。 單元格:表格的最小單位,一個表格由一個或多個單元格組成。 行:表格是由一個或多個行堆疊而成。 列:表格是由一個或多個列堆疊而成。 2、表格的基本
HTML+CSS的一些程式碼
1)畫三角形 <!DOCTYPE> <html> <head> <title> 三角形 </title> <style> div{ width:0px; height:0px; border-top:50px
[HTML][CSS]table中加邊框的樣式(所有td都加薄邊框)
table中加邊框的樣式(所有td都加薄邊框) <style type="text/css"> .border-table { border-collapse: collapse; border: none; } .border-tabl
一些常見html css遇到的問題
手型 logs ie6 str 垂直居中 問題 strong point gif 1、讓容器內文字不管是單行還是多行始終垂直居中 解決:css無法直接控制,用js實現 2、IE上超鏈接使用絕對定位後失效 解決辦法:(1)使用position:relative而不是pos
HTML CSS筆記列表與表格
HTML CSS 加粗:<b>b</b> <strong>strong</strong>換行:<br /> <wbr>安全換行</wbr>傾斜:<i>i</i> <em>em<
html-3,table 表格標簽 tr th td caption thead tbody tfoot 的簡單使用
大哥 rowspan eight body 他會 寬度 標題 cap 順序 1 <!-- 2 table border=‘1‘ style="border-collapse:collapse;" 3 border 表格的像素
html的table多級表頭表格的代碼
分享 lpad 新增 100萬 dff first eight 使用 mage 1,兩級表頭的代碼 <html> <head> <title>多層表頭</title> <link rel="stylesheet"
關於html中table表格tr,td的高度和寬度
title: 關於html中table表格tr,td的高度和寬度 date: 2018-10-30 20:52:47 tags: [佈局] categories: 佈局 關於html中table表格tr,td的高度和寬度 做網頁的時候經常會遇到各種各樣的問題,經常遇到的一個就是
JS匯出html的table表格
jsp的html的內容 如下,我的這個是使用了jstl標籤形成的table <span id="Button1" onclick="javascript:HtmlExportToExcel('PanelExcel')">匯出ex
html/css/js-個人容易忘的一些屬性
1.當div裡面的文字超過給定div給定的寬度,div裡面的文字自動換行 word-break:break-all;會截斷改行最後的單詞 word-wrap:break-wo
HTML+CSS專案課1:利用table製作百度首頁
知識點:html文件基本結構、table標籤佈局、在單元格中插入文字、圖片、連結、表單。 網頁效果圖: 製作思路:將整個網頁當做一個table表格 1、製作一個6行1列的表格 2、在單元格中插入相關內容 3、在第4行的單元格里插入一個form表單 <!DOCT
HTML+CSS專案課2:利用table和表單製作“網易郵箱註冊頁面”
知識點:html文件基本結構、table標籤佈局、表單標籤的使用、img標籤、a標籤、p標籤等常見標籤的使用。 製作網頁效果: 網頁製作思路: 1、將整個網頁分成4部分:3個表格+底部段落文字(3個表格設定同樣的寬度,水平居中,邊框為0等屬性) 2、表格1
///html/css-html-表格-1~7
表單元素 什麼是表格:有行有列,網格形式表示資料,通過二維(行+列)資料表表示的資訊 網格通過在兩條軸線引用資訊來展示覆雜的資料 表格是一個單元格,單元格可以包含文字、圖片、列表、表格、表單 只有行,列=單元格 border
HTML與CSS的一些知識(一)
一般寫程式碼的時候,總會有些小錯誤。為了便於修改以及查詢,所以程式碼格式要寫規範,而且一定一定要寫註釋。因為有時候程式碼寫得多了,真的連自己都找不到自己要找的東西在哪裡。還有命名也要見名知意。 再說一些HTML相關: 1、標籤分類: a、塊級標籤:<div><
HTML與CSS的一些知識(二)
續; 5、表單標籤<form></form> 用於收集使用者資訊,統一提交到伺服器 一般用input標籤收集,再用提交按鈕提交;input標籤根據type屬性值不同有不同的型別;而且表單裡面要把name屬性寫上,因為提交都要有; 選項的單選和多選
HTML與CSS的一些知識(三)
CSS: 1、三大樣式:行內(內嵌)、內部(內聯)、外部(外聯);基本都知道。 2、三大特性: a、繼承性:父級樣式會被子級繼承(!important不會被繼承,<a></a>標籤寫了href屬性不會繼承父級的color屬性) b、層疊性:樣式發生衝突時
HTML與CSS的一些知識(四)
續: line-height 用於設定一行文字行高,一般用於文字的垂直居中; display 用於設定元素的顯示方式 float 浮動,讓元素漂浮起來排列 浮動的影響: a.浮動後,行內元素可以支援寬高 b.文字會讓位,
前端筆記—從入門到墳墓[HTML+CSS][表格與表單]
表格 <table>標籤常用屬性:cellspacing設定單元格之間的距離,cellpadding設定單元格內容到單元格邊的距離,border設定單元格邊框寬度。 注:以上屬性單位皆為px。 <td>標籤常用屬性:colspan設定
html css一些基礎知識點的整理
淺顯的名詞解釋 html:即HyperText Markup Language,超文字標記語言。 css:即Cascading Style Sheets,層疊樣式表。 JavaScript:也稱為ECMAScript,廣義上包括ECMAScript,DOM,