style边框(边框样式css)

http://www.itjxue.com  2023-01-30 02:18  来源:未知  点击次数: 

利用CSS给网页元素添加边框时,style属性是什么作用?

style 属性规定元素的行内样式(inline style)

style 属性将覆盖任何全局的样式设定,例如在 style 标签或在外部样式表中规定的样式。

定义表格左右边框style样式的写法

直接通过“border-方向”的形式进行定义即可。

如:style="border-left:solid 1px #FFFFF; border-right:solid 1px #FFFFF; ";

上面定义的是线类型、宽度、颜色。不需要按举例顺序填写。

举例:

form id='modify1' name="modify1" method="post" enctype="multipart/form-data" action="${ctx}/report/rate_exchange.jsp"

table class="table_common" id="table1" cellspacing="1" cellpadding="0"

tr class='title_tr' style="border-left:solid 1px #FFFFF; border-right:solid 1px #FFFFF; "

td style="border-left:solid 1px #FFFFF; border-right:solid 1px #FFFFF; "

input type="button" style="white-space: nowrap; text-align: center;" /

input type="reset" style="white-space: nowrap; text-align: center;" /

/td

/tr

/table

/form

style设置红色边框

style设置红色边框:style属性。html复选框边框颜色设置红色用style属性,给标签元素添加border-color行内样式来设置边框颜色

(责任编辑:IT教学网)

更多

推荐CGI/Perl教程文章