本文介绍了在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的两种颜色作为背景
发布评论