在td的两种颜色作为背景 [英] two colors in td as background

查看:166
本文介绍了在td的两种颜色作为背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建方形表格单元格

,下三角形为灰色,上三角形为蓝色。

I want to create square shaped table cell

which will have grey color in lower triangle and blue in upper triangle.

推荐答案

根据您的要求在三角形中创建不同颜色的图像,然后将其作为td背景图像。



你不能只使用HTML或CSS设置两种不同颜色的形状。



使用图像是一个更好的选择。
Create an image with different colors in the triangle shape according to your requirements and then place it as the td background image.

you cannot just set the two different colors shape wise using just HTML or CSS.

using image is a better option.


在绘画或图形设计器中创建图像,如adobe photoshop或您喜欢的图像,然后将其添加到页面。



然后你可以调整它的transperency来给它一个特定的效果。



这不可能失败。



谢谢
Create the image in paint or a graphics designer like adobe photoshop or which ever you prefer, then add it to the page.

Then you can adjust the transperency to it to give it a specific effect.

That can''t fail.

Thanks


使用Canvass或Gradients设计这个

背景&渐变 [ ^ ]

HTML5画布开发人员指南 [ ^ ]



希望它有所帮助!
Design this using Canvass or Gradients
Backgrounds & Gradients[^]
A Developer’s Guide to HTML5 Canvas[^]

hope it helped!


这篇关于在td的两种颜色作为背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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