对于背景边框的四个边你也可以按自己的需要进行调整,以左边框为例,你可以使用下述语法:
Border-left-style:solid (double, groove, ridge, inset, outset)定制边框样式
Border-left-color: #xxxxxx定制边框颜色
Border-left-width: xpt 定制边框粗细
其他三个边框只要分别使用Right, Top, Bottom就可以了。将下面的语法放到你的日志中预览一下,看一看是什么效果:(效果这里就不给出来了,有兴趣的可以回去试一下。)
<div style= "border-top-style:outset;border-right-style:outset;border-left-style:outset;
border-bottom-style:outset;background-color:#cc3366">
你可以按照自己的想法随意调整四个边框的式样,以便创造与众不同的效果,记住一点,不同的属性描述之间用 ; 隔开。另外,你可能会注意到,当你设置完边框返回到日志文本编辑模式,在键入文字过程中如果使用回车键,就会又出现一个边框,从而影响文字的连贯性,这是因为HTML语法中不支持硬回车。要解决这个问题,必须返回到HTML编辑模式,在需要回车的地方键入<br>,需要几次回车就键入几个<br>,然后再返回到文本编辑模式,你就会发现边框背景内已经为你加入了回车后的效果。
小绿人的绿色粗框代码:
<DIV><BR><STRONG></STRONG><STRONG></STRONG> </DIV>
<DIV>
<DIV align=center>
<DIV style="BORDER-RIGHT: #339933 2px dotted; BORDER-TOP: #339933 2px dotted; BORDER-LEFT: #339933 2px dotted; BORDER-BOTTOM: #339933 2px dotted">
<DIV style="BORDER-RIGHT: #339933 2px dotted; BORDER-TOP: #339933 2px dotted; BORDER-LEFT: #339933 2px dotted; BORDER-BOTTOM: #339933 2px dotted">
<DIV style="BORDER-RIGHT: #339933 2px dotted; BORDER-TOP: #339933 2px dotted; BORDER-LEFT: #339933 2px dotted; BORDER-BOTTOM: #339933 2px dotted">
<DIV style="BORDER-RIGHT: #339933 2px dotted; BORDER-TOP: #339933 2px dotted; BORDER-LEFT: #339933 2px dotted; BORDER-BOTTOM: #339933 2px dotted">
<DIV style="BORDER-RIGHT: #339933 2px dotted; BORDER-TOP: #339933 2px dotted; BORDER-LEFT: #339933 2px dotted; BORDER-BOTTOM: #339933 2px dotted">
<P align=center><FONT color=#009966 size=5><FONT color=#006600>测试</FONT></FONT></P></DIV></DIV></DIV></DIV></DIV></DIV>
<DIV align=center> </DIV></DIV>
代码:
<DIV style="BORDER-RIGHT: #ffcc00 3px dotted; BORDER-TOP: #ffcc00 3px dotted; BORDER-LEFT: #ffcc00 3px dotted; BORDER-BOTTOM: #ffcc00 3px dotted">
<DIV style="BORDER-RIGHT: #ffcc00 3px dotted; BORDER-TOP: #ffcc00 3px dotted; BORDER-LEFT: #ffcc00 3px dotted; BORDER-BOTTOM: #ffcc00 3px dotted">
<DIV style="BORDER-RIGHT: #ffcc00 3px dotted; BORDER-TOP: #ffcc00 3px dotted; BORDER-LEFT: #ffcc00 3px dotted; BORDER-BOTTOM: #ffcc00 3px dotted">
<DIV style="BORDER-RIGHT: #ffcc00 3px dotted; BORDER-TOP: #ffcc00 3px dotted; BORDER-LEFT: #ffcc00 3px dotted; BORDER-BOTTOM: #ffcc00 3px dotted"><FONT color=#ff9900 size=6> </FONT><FONT color=#fcfbfa></FONT><FONT color=#ff9900 size=6> </FONT> <FONT color=#333333> <BR></FONT><FONT color=#333333><FONT color=#ff9900>小绿人黄色粗框<BR></FONT>
<DIV align=center>
<DIV style="BORDER-RIGHT: #f0c378 2pt dashed; BORDER-TOP: #f0c378 2pt dashed; SCROLLBAR-FACE-COLOR: #ffffb4; SCROLLBAR-HIGHLIGHT-COLOR: #999999; OVERFLOW: scroll; BORDER-LEFT: #f0c378 2pt dashed; WIDTH: 347px; SCROLLBAR-SHADOW-COLOR: #ffccff; COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #ffffcc; BORDER-BOTTOM: #f0c378 2pt dashed; SCROLLBAR-DARKSHADOW-COLOR: #999999; HEIGHT: 107px; BACKGROUND-COLOR: #ffffb4">
<P align=left><FONT color=#ff9900>代码:</FONT></P></DIV></DIV> </FONT><FONT color=#6699ff> </FONT><BR> </DIV></DIV></DIV></DIV>
评论