使用内容编辑器Web部件或脚本编辑器Web部件增加表格上边框的粗细 [英] Increase the thickness of the border on a table using the content editor web part or the script editor web part

查看:79
本文介绍了使用内容编辑器Web部件或脚本编辑器Web部件增加表格上边框的粗细的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用内容编辑器Web部件或脚本编辑器Web部件增加桌子上边框的厚度?

How do I increase the thickness of the border on a table using the content editor web part or the script editor web part?

推荐答案

嗨else11,

Hi else11,

是否将表格插入SharePoint页面?

Whether you insert the table in SharePoint Page?

在这种情况下,请在内容编辑器Web部件中添加以下CSS:

If that’s the case, add the CSS below in Content Editor Web Part:

<style type="text/css">
table.ms-rteTable-default tr:nth-child(2n+1) td, table.ms-rteTable-default tr th {      
        border-width: 4px !important;       
    }

    table.ms-rteTable-default tr:nth-child(2n) td, table.ms-rteTable-default tr th {
        border-width: 4px !important; 
    }
</style>

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于使用内容编辑器Web部件或脚本编辑器Web部件增加表格上边框的粗细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆