Skip to content

[html] 第131天 table去除边框的方法有哪些? #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
haizhilin2013 opened this issue Aug 24, 2019 · 4 comments
Open

[html] 第131天 table去除边框的方法有哪些? #1108

haizhilin2013 opened this issue Aug 24, 2019 · 4 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第131天 table去除边框的方法有哪些?

@haizhilin2013 haizhilin2013 added the html html label Aug 24, 2019
@qhdxwdm
Copy link

qhdxwdm commented Aug 25, 2019

border=“0px”

@NealGarrett2019
Copy link

  1. border-style: hidden;  
    
  2. border: 0; 
    
  3. border: hidden; 
    
  4. border-width: 0; 
    
  5. border: transparent;
    
  6. border-color: transparent; (可能不合题"去除"之意,当例外,不过效果最好,因为border其实还在,所以对原有布局无丝毫影响,就只是看不见了)
    

@EmiyaYang
Copy link

EmiyaYang commented Aug 25, 2019

// scss

table {
    border: none; // 去外边框
    td, th, tr {
        border: inherit;  // 去内边框
    }
}

@jasonleeya
Copy link

难道不是border="0" cellpadding="0" cellspacing="0"吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

5 participants