Get the App
SLTechnology News&Howtos  ›  Development  › 

Case Analysis of html5 Game Design pattern

Shulou Source: shulou.com Published: 2022-06-01 06:40:55 10月03日 Update

这篇文章主要介绍"html5游戏设计模式实例分析"的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇"html5游戏设计模式实例分析"文章能帮助大家解决问题。

一、背景设计模式

[html]

一、背景设计模式

p { background:#f00 url("images/heading2.jpg") no-repeat; width:250px; height:76px; }

二、绝对定位设计模式

*.positioned { position:relative; }

*.absolute { position:absolute; top:10px; left:10px; }

*.positioned { border:1px solid red; height:100px; background-color:#ffee00; }

*.absolute { border:4px solid green; background-color:white; }

三、文本替换设计模式

#h3 { position:relative; width:250px;height:76px; overflow:hidden; }

#h3 span { position:absolute; width:250px; height:76px; top:0; left:0; background:#ff0 url("images/heading2.jpg") no-repeat; }

四、左旁注设计模式

*.left-marginal { position:relative; margin-left:200px; }

*.marginal-heading { position:absolute; top:0; left:-200px; margin:0; }

You want to excerpt an element and move it into the left again.

五、旁注式图片下沉设计模式

*.indent { position:relative; margin-left:120px; }

*.graphic-dropcap { position:absolute; width:120px; height:90px; left:-120px; top:0; }

*.graphic-dropcap span { position:absolute; width:120px; height:90px; margin:0; top:0; left:0; background:url(images/m.jpg) no-repeat; }

arginal Graphic Dropcap. The letter M has been covered by the dropcap is image.Screen readers? read the text and visual users see the image.If the browser cannot display the dropcap image, the text becomes visible.

关于"html5游戏设计模式实例分析"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注行业资讯频道,小编每天都会为大家更新不同的知识点。

Tags: Patterns design patterns designs examples case analysis analysis knowledge side notes background industry different practical content pictures practicality reality text articles methods more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple MariaDB macOS Docker