Send a new displaytag Style

Source: Internet
Author: User

Displaytag is a very common table label, but its style is a little dull. Recently, the customer is very dissatisfied with its style, so we can't improve it. The customer is God and can only follow it. The original style is as follows:

The modification is as follows:


The real master wants to modify its own display.css style sheet,CodeAs follows:

Original display.css

Table. t1 {Star: expression (this. width = "100%", this. border = "1", this. style. wordbreak = "break-all", this. cellpadding = "0", this. cellspacing = "0", this. bordercolorlight = "# d4d4d4", this. bordercolordark = "# eeeeee", this. bgcolor = "#333333");} Th {background-color: # c9dcf5; font-size: 12px; font-family: ��, Arial, Helvetica, sans-serif; color: # 0049ac; text-Decoration: none; line-Height: 30px; text-align: center; font-weight: 400px;} tr. odd {background-color: # FFF; line-Height: 30px;} tr. even {background-color: # f1f1f1; line-Height: 30px;} th. sortable A {background-image: URL (.. /image/displaytag/arrow_up.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th. order1 A {background-image: URL (.. /image/displaytag/arrow_off.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th. order2 A {background-image: URL (.. /image/displaytag/arrow_down.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th A, th A: visited {color: # 0049ac; text-Decoration: none;} th: hover {text-Decoration: none; color: # 0049ac;} th. sorted A, Th. sortable A {background-position: Right; display: # 0049ac; width: 100%; text-Decoration: none;} TD {font-size: 12px; color: # 0049ac ;} a: hover {color: # 0049ac; font-size: 12px; text-Decoration: none;} span. pagebanner {Align: Left; color: # 0049ac;} span. pagelinks {Align: Right; color: # 0049ac;} th. notsortable A {background-repeat: No-Repeat ;}. t1 {background-color: # FFF ;}. t2 {background-color: # fafafa ;}. t3 {background-color: # f4f7fb ;}

 

Display.css

Body {font-size: 12px; font-family: ""; color: # 5c5c5c ;}. table-border-blue {border-width: 0px;} Th {font-size: 12px; font-family: ""; color: # 5c5c5c; text-align: center; font-weight: normal;} th. sortable A, th A: visited {color: # 5c5c5c;} th. sortable A {background-image: URL (.. /image/displaytag/arrow_up.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th. order1 A {background-image: URL (.. /image/displaytag/arrow_off.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th. order2 A {background-image: URL (.. /image/displaytag/arrow_down.png); background-repeat: No-Repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: # 0049ac; text-Decoration: none; line-Height: 30px;} th. sorted A, Th. sortable A {background-position: Right; display: # 0049ac; width: 100%; text-Decoration: none;} table. t1 {Star: expression (this. tablelayout = "fixed"); border-collapse: collapse; width: 100%; text-align: center; Height: 35px; float: Left; margin: 0px 1px 5px 0px; border-top-style: none; border-left-style: none; border-right-style: none; border-bottom-style: none; Background-color: # f1f1f1 ;} TR. odd {background-color: # ffffff;} tr. even {background-color: # f8f8f8 ;}. t1 thead {Background: URL (.. /images/titlebg_01.gif) Repeat-X; Border: # c4d5df solid 1px; Height: 35px ;}. t1 TD ,. t1 thead A {color: # 5c5c5c; font-style: normal ;}. TD-Icon {Background: URL (.. /images/list01.gif) No-repeat 8px 7px ;}. sortable {border: # c4d5df solid 0px; color: # 5c5c5c; font-style: normal ;}. t1 tbody TD {Height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; Border: 0px; border-top: # f1f1f1 solid 1px; border-bottom: # f1f1f1 solid 1px ;}. t1 tfoot TD {Height: 35px; Background: URL (.. /images/titlebg_01.gif) Repeat-X ;}. guidebar {width: 100%; Border: # c4d5df solid 1px; Height: 14px; float: Left; padding: 10px 2px 10px 0; margin: 0 0 5px 0 ;}. guidelable {color: # 004b9e ;}. guide {position: relative; margin: 0 16px 0 0; text-align: Right ;}. currentlable ,. currentguide {color: # 4388ce; font-style: normal; font-weight: bold ;}. currentguide {Background: URL (.. /images/pic01.gif) No-repeat 0 1px; float: Left; margin: 0 0 0 8px; padding: 0 0 0 16px; text-align: Left ;}. currentguide2 {Background: URL (.. /images/pic02.gif) No-repeat 0 1px; float: Left; margin: 0 0 0 8px; padding: 0 0 0 16px; text-align: Left; color: # 4388ce; font-style: normal; font-weight: bold ;}. search-None {display: none ;}. search-block {display: block; margin: 10px 10px 0 10px; border-top: # c4d5df solid 1px; padding: 5px 0 0 5px ;}. searchtable {text-align: Left; Height: 30px ;}. block {margin-top: 5px; Border: # c8c8c8 dashed 1px; width: 100%; Height: 14px; float: Left; padding: 8px 2px 4px 0 ;}. blocktitle {list-style-type: none; color: # 8d8d8d; font-style: normal; font-weight: bold; Height: 22px ;}. blockcontent {list-style-type: none; color: # 8d8d8d; font-style: normal; Height: 20px ;}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.